mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
build, add odbeta
This commit is contained in:
parent
6bd90c9666
commit
02ed0c7f60
4 changed files with 82 additions and 2 deletions
39
.github/workflows/ci.yml
vendored
39
.github/workflows/ci.yml
vendored
|
@ -200,3 +200,42 @@ jobs:
|
||||||
name: RetroFW
|
name: RetroFW
|
||||||
path: PicoDrive-retrofw*.opk
|
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
|
||||||
|
|
19
.github/workflows/prepare.yml
vendored
Normal file
19
.github/workflows/prepare.yml
vendored
Normal file
|
@ -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"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
#define VERSION "1.99" REVISION
|
#define VERSION "2.00-alpha1" REVISION
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# creates builds for the supported platforms in the release directory
|
# creates builds for the supported platforms in the release directory
|
||||||
#
|
#
|
||||||
# usage: release.sh <version> [platform...]
|
# 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:
|
# expects toolchains to be installed in these docker containers:
|
||||||
# gph: ghcr.io/irixxxx/toolchain-gp2x
|
# gph: ghcr.io/irixxxx/toolchain-gp2x
|
||||||
|
@ -14,6 +14,8 @@
|
||||||
# gcw0, rg350: ghcr.io/irixxxx/toolchain-opendingux
|
# gcw0, rg350: ghcr.io/irixxxx/toolchain-opendingux
|
||||||
# miyoo: miyoocfw/toolchain
|
# miyoo: miyoocfw/toolchain
|
||||||
# psp: ghcr.io/pspdev/pspdev
|
# psp: ghcr.io/pspdev/pspdev
|
||||||
|
# odbeta-gcw0: ghcr.io/irixxxx/toolchain-odbeta-gcw0
|
||||||
|
# odbeta-lepus: ghcr.io/irixxxx/toolchain-odbeta-lepus
|
||||||
|
|
||||||
trap "exit" ERR
|
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 &&
|
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-pandora sh &&
|
||||||
mv PicoDrive-pandora-$rel release-$rel/
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue