use docker ubuntu container for appimage #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Picodrive CI | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: install dependencies | |
run: | | |
(echo "apt-get update -qq && apt-get install -y gcc g++ make git wget zip libfuse2 fuse libsdl1.2-dev libasound2-dev libpng-dev libz-dev &&"; \ | |
echo "wget https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20231206-1/linuxdeploy-x86_64.AppImage && chmod 755 linuxdeploy-x86_64.AppImage &&"; \ | |
echo "./configure && make -j2 && mkdir -p app/usr/bin && cp -a PicoDrive platform/linux/skin app/usr/bin &&"; \ | |
echo "./linuxdeploy-x86_64.AppImage --appdir=app --desktop-file=platform/linux/data/PicoDrive.desktop --icon-file=platform/opendingux/data/megadrive.png --output=appimage") | \ | |
docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm --privileged ubuntu:18.04 | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Linux AppImage | |
path: PicoDrive-*.AppImage | |
build-libretro: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: make | |
run: LDFLAGS=-Wl,--no-undefined make -j2 -f Makefile.libretro | |
build-gp2x: | |
runs-on: ubuntu-latest | |
container: ghcr.io/irixxxx/toolchain-gp2x | |
permissions: | |
packages: read | |
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=gph | |
make -j2 PLATFORM_MP3=0 | |
make -C platform/gp2x rel VER=$ver | |
mv PicoDrive_$ver.zip PicoDrive-gph_$ver.zip | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: GP2X | |
path: PicoDrive-gph_*.zip | |
build-pandora: | |
runs-on: ubuntu-latest | |
container: ghcr.io/irixxxx/toolchain-pandora | |
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=pandora | |
make -j2 | |
make -C platform/pandora rel VER=$ver | |
mv platform/pandora/PicoDrive_*.pnd . | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Pandora | |
path: PicoDrive_*.pnd | |
build-psp: | |
runs-on: ubuntu-latest | |
container: pspdev/pspdev | |
steps: | |
- name: build environment | |
run: | | |
apk add git gcc g++ zip | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: build | |
run: | | |
export CROSS_COMPILE=psp- | |
git config --global --add safe.directory $PWD | |
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD) | |
./configure --platform=psp | |
make -j2 | |
make -C platform/psp rel VER=$ver | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PSP | |
path: PicoDrive_psp_*.zip | |
build-dingux: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
container: ghcr.io/irixxxx/toolchain-dingux | |
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=dingux | |
make -j2 | |
mv PicoDrive-dge.zip PicoDrive-dge-$ver.zip | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Dingux | |
path: PicoDrive-dge*.zip | |
build-gcw0: | |
runs-on: ubuntu-latest | |
container: ghcr.io/irixxxx/toolchain-opendingux | |
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-gcw0 | |
make -j2 | |
mv PicoDrive.opk PicoDrive-gcw0-$ver.opk | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: GCW0 | |
path: PicoDrive-gcw0*.opk | |
build-opendingux: | |
runs-on: ubuntu-latest | |
container: ghcr.io/irixxxx/toolchain-opendingux | |
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-opendingux-$ver.opk | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Opendingux | |
path: PicoDrive-opendingux*.opk | |
build-miyoo: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
container: ghcr.io/irixxxx/toolchain-miyoo | |
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=miyoo | |
make -j2 | |
mv PicoDrive-miyoo.zip PicoDrive-miyoo-$ver.zip | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Miyoo | |
path: PicoDrive-miyoo*.zip | |
build-retrofw: | |
runs-on: ubuntu-latest | |
container: ghcr.io/irixxxx/toolchain-retrofw | |
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=retrofw | |
make -j2 | |
mv PicoDrive.opk PicoDrive-retrofw-$ver.opk | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
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=odbeta | |
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=odbeta | |
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 | |
build-odbeta-rg99: | |
runs-on: ubuntu-latest | |
container: ghcr.io/irixxxx/toolchain-odbeta-rs90 | |
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=odbeta | |
make -j2 | |
mv PicoDrive.opk PicoDrive-odbeta-rg99-$ver.opk | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ODbeta rg99 | |
path: PicoDrive-odbeta-*.opk |