mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Make it easier to run update-lockfiles locally
This commit is contained in:
parent
11f71371e2
commit
b45668f5e9
6
.github/scripts/update-lockfiles.sh
vendored
6
.github/scripts/update-lockfiles.sh
vendored
|
@ -16,5 +16,7 @@ if [ "$(git diff --cached --name-only)" == '' ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git -c user.name="GBA bot" -c user.email="gw@ilym.me" commit -m 'Update lockfiles'
|
if [ "$1" == '--commit' ]; then
|
||||||
git push
|
git -c user.name="GBA bot" -c user.email="gw@ilym.me" commit -m 'Update lockfiles'
|
||||||
|
git push
|
||||||
|
fi
|
18
.github/workflows/update-lockfiles.yml
vendored
18
.github/workflows/update-lockfiles.yml
vendored
|
@ -2,9 +2,9 @@ name: Update lockfiles
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ 'renovate/*' ]
|
branches: ["renovate/*"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ 'renovate/*' ]
|
branches: ["renovate/*"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
@ -13,10 +13,10 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Set CARGO_TARGET_DIR
|
- name: Set CARGO_TARGET_DIR
|
||||||
run: echo "CARGO_TARGET_DIR=$HOME/target" >> $GITHUB_ENV
|
run: echo "CARGO_TARGET_DIR=$HOME/target" >> $GITHUB_ENV
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- uses: extractions/setup-just@v1
|
- uses: extractions/setup-just@v1
|
||||||
- name: Update lock files
|
- name: Update lock files
|
||||||
run: just update-lockfiles
|
run: just update-lockfiles --commit
|
||||||
|
|
4
justfile
4
justfile
|
@ -84,8 +84,8 @@ build-roms:
|
||||||
build-book:
|
build-book:
|
||||||
(cd book && mdbook build)
|
(cd book && mdbook build)
|
||||||
|
|
||||||
update-lockfiles:
|
update-lockfiles *args:
|
||||||
bash .github/scripts/update-lockfiles.sh
|
bash .github/scripts/update-lockfiles.sh {{args}}
|
||||||
|
|
||||||
update-linker-scripts:
|
update-linker-scripts:
|
||||||
find -type f -name gba.ld | grep -v ./agb/gba.ld | xargs -n1 cp -v -- agb/gba.ld
|
find -type f -name gba.ld | grep -v ./agb/gba.ld | xargs -n1 cp -v -- agb/gba.ld
|
||||||
|
|
Loading…
Reference in a new issue