mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-05 00:44:19 +01:00
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
name: Snes9x GX Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Snes9x GX
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
image: ["Wii", "GameCube"]
|
|
container: devkitpro/devkitppc:latest
|
|
|
|
steps:
|
|
- name: Checkout snes9xgx repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Build Wii
|
|
if: ${{ matrix.image == 'Wii' }}
|
|
run: |
|
|
make -f Makefile.wii -j2
|
|
|
|
- name: Copy Wii artifacts
|
|
if: ${{ matrix.image == 'Wii' }}
|
|
run: |
|
|
mkdir -p dist/Snes9xGX/apps/snes9xgx
|
|
mkdir -p dist/Snes9xGX/snes9xgx/roms
|
|
mkdir dist/Snes9xGX/snes9xgx/cheats
|
|
mkdir dist/Snes9xGX/snes9xgx/saves
|
|
touch dist/Snes9xGX/snes9xgx/roms/romsdir
|
|
touch dist/Snes9xGX/snes9xgx/cheats/cheatsdir
|
|
touch dist/Snes9xGX/snes9xgx/saves/savesdir
|
|
cp hbc/* dist/Snes9xGX/apps/snes9xgx/
|
|
cp executables/snes9xgx-wii.dol dist/Snes9xGX/apps/snes9xgx/boot.dol
|
|
|
|
- name: Upload Wii artifacts
|
|
uses: actions/upload-artifact@v3
|
|
if: ${{ matrix.image == 'Wii' }}
|
|
with:
|
|
name: Snes9xGX
|
|
path: |
|
|
dist/Snes9xGX/
|
|
|
|
- name: Build GameCube
|
|
if: ${{ matrix.image == 'GameCube' }}
|
|
run: |
|
|
make -f Makefile.gc -j2
|
|
|
|
- name: Copy GameCube artifact
|
|
if: ${{ matrix.image == 'GameCube' }}
|
|
run: |
|
|
mkdir -p dist/Snes9xGX-GameCube
|
|
cp executables/snes9xgx-gc.dol dist/Snes9xGX-GameCube/
|
|
|
|
- name: Upload GameCube artifact
|
|
uses: actions/upload-artifact@v3
|
|
if: ${{ matrix.image == 'GameCube' }}
|
|
with:
|
|
name: Snes9xGX-GameCube
|
|
path: |
|
|
dist/Snes9xGX-GameCube/
|