build, add odbeta
authorkub <derkub@gmail.com>
Thu, 9 Nov 2023 22:38:38 +0000 (23:38 +0100)
committerkub <derkub@gmail.com>
Thu, 9 Nov 2023 22:44:01 +0000 (23:44 +0100)
.github/workflows/ci.yml
.github/workflows/prepare.yml [new file with mode: 0644]
platform/common/version.h
tools/release.sh

index 160374c..58a35a8 100644 (file)
@@ -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 (file)
index 0000000..e4f4b55
--- /dev/null
@@ -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"
+
index 45138dd..98ec231 100644 (file)
@@ -1 +1 @@
-#define VERSION "1.99" REVISION\r
+#define VERSION "2.00-alpha1" REVISION\r
index 0e071ea..b4e0430 100755 (executable)
@@ -5,7 +5,7 @@
 # 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
@@ -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
+}