snes9xgx/.github/workflows/continuous-integration-workflow.yml

64 lines
1.7 KiB
YAML
Raw Normal View History

name: Snes9x GX Build
on: [push, pull_request]
jobs:
build:
name: Build Snes9x GX
runs-on: ubuntu-latest
2022-01-09 17:41:47 +01:00
strategy:
matrix:
image: ["Wii", "GameCube"]
container: devkitpro/devkitppc:latest
steps:
2022-02-25 16:40:42 +01:00
- name: Checkout snes9xgx repo
2022-10-21 17:55:20 +02:00
uses: actions/checkout@v3
with:
fetch-depth: 0
2022-01-09 17:41:47 +01:00
- name: Build Wii
if: ${{ matrix.image == 'Wii' }}
run: |
2022-01-09 17:41:47 +01:00
make -f Makefile.wii -j2
2022-02-07 15:04:39 +01:00
- name: Copy Wii artifacts
2022-01-09 17:41:47 +01:00
if: ${{ matrix.image == 'Wii' }}
run: |
2020-10-25 18:57:36 +01:00
mkdir -p dist/Snes9xGX/apps/snes9xgx
mkdir -p dist/Snes9xGX/snes9xgx/roms
mkdir dist/Snes9xGX/snes9xgx/cheats
mkdir dist/Snes9xGX/snes9xgx/saves
2020-12-24 19:11:28 +01:00
touch dist/Snes9xGX/snes9xgx/roms/romsdir
touch dist/Snes9xGX/snes9xgx/cheats/cheatsdir
touch dist/Snes9xGX/snes9xgx/saves/savesdir
2020-10-25 18:57:36 +01:00
cp hbc/* dist/Snes9xGX/apps/snes9xgx/
cp executables/snes9xgx-wii.dol dist/Snes9xGX/apps/snes9xgx/boot.dol
2022-01-09 17:41:47 +01:00
- name: Upload Wii artifacts
2022-10-21 17:55:20 +02:00
uses: actions/upload-artifact@v3
2022-01-09 17:41:47 +01:00
if: ${{ matrix.image == 'Wii' }}
with:
2020-10-25 18:57:36 +01:00
name: Snes9xGX
path: |
2020-10-25 18:57:36 +01:00
dist/Snes9xGX/
2022-01-09 17:41:47 +01:00
- 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
2022-10-21 17:55:20 +02:00
uses: actions/upload-artifact@v3
2022-01-09 17:41:47 +01:00
if: ${{ matrix.image == 'GameCube' }}
with:
2020-10-25 18:57:36 +01:00
name: Snes9xGX-GameCube
path: |
2020-10-25 18:57:36 +01:00
dist/Snes9xGX-GameCube/