SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 06bc4cd0bfa05bef1ef193e7881aa7786d7cc0b7 parent 3ef8fab7c42fc254695dd911030356f3c3f4c822 Author: Lior Halphon <LIJI32@gmail.com> Date: Fri, 8 Mar 2024 18:16:51 +0200 Make the libretro branch only use stable releases, tag libretro releases Diffstat:
| A | .github/actions/update_libretro.sh | 25 | +++++++++++++++++++++++++ |
| M | .github/workflows/libretro.yml | 7 | ++----- |
2 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/.github/actions/update_libretro.sh b/.github/actions/update_libretro.sh @@ -0,0 +1,25 @@ +set -e + +LATEST=$(git tag --sort=-creatordate | grep "^v" | grep -v libretro | head -n 1) + +if [ $(git tag -l "$LATEST"-libretro) ]; then + echo "The libretro branch is already up-to-date" + exit 0 +fi + +echo "Building boot ROMs..." +make -j bootroms +mv build/bin/BootROMs BootROMs/prebuilt + +echo "Updating branch" +git config --global --add --bool push.autoSetupRemote true +git config --global user.name 'Libretro Updater' +git config --global user.email '<>' + +git branch --delete libretro || true +git checkout tags/$LATEST -b libretro + +git add BootROMs/prebuilt/* +git commit -m "Update libretro branch to $LATEST" +git tag "$LATEST"-libretro +git push --force --tags diff --git a/.github/workflows/libretro.yml b/.github/workflows/libretro.yml @@ -23,9 +23,6 @@ jobs: shell: bash run: | ./.github/actions/install_deps.sh ${{ matrix.os }} - - name: Build Boot ROMs + - name: Build Boot ROMs and Push run: | - make -j bootroms && mv build/bin/BootROMs BootROMs/prebuilt - - name: Push changes - run: | - git config --global --add --bool push.autoSetupRemote true && git config --global user.name 'Libretro Updater' && (git branch --delete libretro || true) && git checkout -b libretro && git config --global user.email '<>' && git add BootROMs/prebuilt/* && git commit -m 'Update prebuilt boot ROMs' && git push --force + ./.github/actions/update_libretro.sh
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.