SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
.github/actions/update_libretro.sh
1 set -ex
2
3 git fetch --tags
4 LATEST=$(git tag --sort=-creatordate | grep "^v" | grep -v libretro | head -n 1)
5
6 if [ $(git tag -l "$LATEST"-libretro) ]; then
7 echo "The libretro branch is already up-to-date"
8 exit 0
9 fi
10
11 git config --global --add --bool push.autoSetupRemote true
12 git config --global user.name 'Libretro Updater'
13 git config --global user.email '<>'
14
15 cp libretro/gitlab-ci.yml .gitlab-ci.yml
16
17 echo "Switching to tag $LATEST"
18 git branch --delete libretro || true
19 git checkout tags/$LATEST -b libretro
20
21 echo "Building boot ROMs..."
22 make -j bootroms
23
24 echo "Updating branch"
25 mv build/bin/BootROMs BootROMs/prebuilt
26 git add BootROMs/prebuilt/* .gitlab-ci.yml
27 git commit -m "Update libretro branch to $LATEST"
28 git tag "$LATEST"-libretro
29 git push --force
30 git push --tags
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.