From: kub Date: Thu, 9 Nov 2023 22:38:38 +0000 (+0100) Subject: build, add odbeta X-Git-Tag: v2.00~169 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ed0c7f60c2fc86d35afe3f05a0a8c6ad54747c;p=picodrive.git build, add odbeta --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 160374c4..58a35a8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -200,3 +200,42 @@ jobs: 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 diff --git a/.github/workflows/prepare.yml b/.github/workflows/prepare.yml new file mode 100644 index 00000000..e4f4b552 --- /dev/null +++ b/.github/workflows/prepare.yml @@ -0,0 +1,19 @@ +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" + diff --git a/platform/common/version.h b/platform/common/version.h index 45138ddb..98ec231a 100644 --- a/platform/common/version.h +++ b/platform/common/version.h @@ -1 +1 @@ -#define VERSION "1.99" REVISION +#define VERSION "2.00-alpha1" REVISION diff --git a/tools/release.sh b/tools/release.sh index 0e071eaa..b4e04302 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -5,7 +5,7 @@ # creates builds for the supported platforms in the release directory # # usage: release.sh [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 @@ -14,6 +14,8 @@ # 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 @@ -109,3 +111,23 @@ echo " git config --global --add safe.directory /home/picodrive &&\ | 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 +}