name: RetroFW
path: PicoDrive-retrofw*.opk
+ build-odbeta-gcw0:
+ runs-on: ubuntu-latest
+ container: ghcr.io/irixxxx/toolchain-odbeta-gcw0
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: build
+ run: |
+ git config --global --add safe.directory $PWD
+ ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
+ ./configure --platform=opendingux
+ make -j2
+ mv PicoDrive.opk PicoDrive-odbeta-gcw0-$ver.opk
+ - name: artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: ODbeta gcw0
+ path: PicoDrive-odbeta-*.opk
+
+ build-odbeta-lepus:
+ runs-on: ubuntu-latest
+ container: ghcr.io/irixxxx/toolchain-odbeta-lepus
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: build
+ run: |
+ git config --global --add safe.directory $PWD
+ ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
+ ./configure --platform=opendingux
+ make -j2
+ mv PicoDrive.opk PicoDrive-odbeta-lepus-$ver.opk
+ - name: artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: ODbeta lepus
+ path: PicoDrive-odbeta-*.opk
--- /dev/null
+name: prepare
+on: workflow_call
+
+jobs:
+ prepare:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: create release
+ id: create_release
+ if: ${{ github.ref_type == 'tag' }}
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ tag=$(echo ${{ github.ref }} | sed 's:refs/tags/::')
+ gh release create "$tag" --verify-tag -d -t "$tag" -n "$tag"
+
# creates builds for the supported platforms in the release directory
#
# usage: release.sh <version> [platform...]
-# platforms: gph dingux retrofw gcw0 rg350 miyoo psp pandora
+# platforms: gph dingux retrofw gcw0 rg350 miyoo psp pandora odbeta-gcw0 odbeta-lepus
#
# expects toolchains to be installed in these docker containers:
# gph: ghcr.io/irixxxx/toolchain-gp2x
# gcw0, rg350: ghcr.io/irixxxx/toolchain-opendingux
# miyoo: miyoocfw/toolchain
# psp: ghcr.io/pspdev/pspdev
+# odbeta-gcw0: ghcr.io/irixxxx/toolchain-odbeta-gcw0
+# odbeta-lepus: ghcr.io/irixxxx/toolchain-odbeta-lepus
trap "exit" ERR
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-pandora sh &&
mv PicoDrive-pandora-$rel release-$rel/
}
+
+[ -z "${plat##* odbeta-gcw0 *}" ] && {
+# gcw0 (untested): JZ4770 (mips32r2 with fpu), swapped X/Y buttons
+docker pull ghcr.io/irixxxx/toolchain-odbeta-gcw0
+echo " git config --global --add safe.directory /home/picodrive &&\
+ ./configure --platform=gcw0 &&\
+ make clean && make -j2 all "\
+ | docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-odbeta-gcw0 sh &&
+mv PicoDrive.opk release-$rel/PicoDrive-odbeta-gcw0_$rel.opk
+}
+
+[ -z "${plat##* odbeta-lepus *}" ] && {
+# lepus (untested): JZ4760 (mips32r1 with fpu)
+docker pull ghcr.io/irixxxx/toolchain-odbeta-lepus
+echo " git config --global --add safe.directory /home/picodrive &&\
+ ./configure --platform=opendingux &&\
+ make clean && make -j2 all "\
+ | docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-odbeta-lepus sh &&
+mv PicoDrive.opk release-$rel/PicoDrive-odbeta-lepus_$rel.opk
+}