mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
Optimize Github workflow (#980)
This commit is contained in:
parent
ad638a5dbd
commit
be82c06820
@ -6,6 +6,9 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build Snes9x GX
|
name: Build Snes9x GX
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
image: ["Wii", "GameCube"]
|
||||||
container: devkitpro/devkitppc:latest
|
container: devkitpro/devkitppc:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -13,33 +16,46 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build Wii
|
||||||
|
if: ${{ matrix.image == 'Wii' }}
|
||||||
run: |
|
run: |
|
||||||
make -j2
|
make -f Makefile.wii -j2
|
||||||
|
|
||||||
- name: Copy files
|
- name: Copy Wii artifact
|
||||||
|
if: ${{ matrix.image == 'Wii' }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist/Snes9xGX/apps/snes9xgx
|
mkdir -p dist/Snes9xGX/apps/snes9xgx
|
||||||
mkdir -p dist/Snes9xGX/snes9xgx/roms
|
mkdir -p dist/Snes9xGX/snes9xgx/roms
|
||||||
mkdir dist/Snes9xGX/snes9xgx/cheats
|
mkdir dist/Snes9xGX/snes9xgx/cheats
|
||||||
mkdir dist/Snes9xGX/snes9xgx/saves
|
mkdir dist/Snes9xGX/snes9xgx/saves
|
||||||
mkdir dist/Snes9xGX-GameCube/
|
|
||||||
touch dist/Snes9xGX/snes9xgx/roms/romsdir
|
touch dist/Snes9xGX/snes9xgx/roms/romsdir
|
||||||
touch dist/Snes9xGX/snes9xgx/cheats/cheatsdir
|
touch dist/Snes9xGX/snes9xgx/cheats/cheatsdir
|
||||||
touch dist/Snes9xGX/snes9xgx/saves/savesdir
|
touch dist/Snes9xGX/snes9xgx/saves/savesdir
|
||||||
cp hbc/* dist/Snes9xGX/apps/snes9xgx/
|
cp hbc/* dist/Snes9xGX/apps/snes9xgx/
|
||||||
cp executables/snes9xgx-wii.dol dist/Snes9xGX/apps/snes9xgx/boot.dol
|
cp executables/snes9xgx-wii.dol dist/Snes9xGX/apps/snes9xgx/boot.dol
|
||||||
cp executables/snes9xgx-gc.dol dist/Snes9xGX-GameCube/
|
|
||||||
|
|
||||||
- name: Upload Wii Build Artifacts
|
- name: Upload Wii artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
if: ${{ matrix.image == 'Wii' }}
|
||||||
with:
|
with:
|
||||||
name: Snes9xGX
|
name: Snes9xGX
|
||||||
path: |
|
path: |
|
||||||
dist/Snes9xGX/
|
dist/Snes9xGX/
|
||||||
|
|
||||||
- name: Upload GameCube Build Artifacts
|
- 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@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
if: ${{ matrix.image == 'GameCube' }}
|
||||||
with:
|
with:
|
||||||
name: Snes9xGX-GameCube
|
name: Snes9xGX-GameCube
|
||||||
path: |
|
path: |
|
||||||
|
Loading…
Reference in New Issue
Block a user