mirror of
https://github.com/dborth/fceugx.git
synced 2024-12-04 22:34:14 +01:00
Optimize Github workflow (#450)
This commit is contained in:
parent
9c27d9cb00
commit
08611e713a
@ -6,6 +6,9 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build FCE Ultra GX
|
name: Build FCE Ultra 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/FCEUltraGX/apps/fceugx
|
mkdir -p dist/FCEUltraGX/apps/fceugx
|
||||||
mkdir -p dist/FCEUltraGX/fceugx/roms
|
mkdir -p dist/FCEUltraGX/fceugx/roms
|
||||||
mkdir dist/FCEUltraGX/fceugx/cheats
|
mkdir dist/FCEUltraGX/fceugx/cheats
|
||||||
mkdir dist/FCEUltraGX/fceugx/saves
|
mkdir dist/FCEUltraGX/fceugx/saves
|
||||||
mkdir dist/FCEUltraGX-GameCube/
|
|
||||||
touch dist/FCEUltraGX/fceugx/roms/romsdir
|
touch dist/FCEUltraGX/fceugx/roms/romsdir
|
||||||
touch dist/FCEUltraGX/fceugx/cheats/cheatsdir
|
touch dist/FCEUltraGX/fceugx/cheats/cheatsdir
|
||||||
touch dist/FCEUltraGX/fceugx/saves/savesdir
|
touch dist/FCEUltraGX/fceugx/saves/savesdir
|
||||||
cp hbc/* dist/FCEUltraGX/apps/fceugx/
|
cp hbc/* dist/FCEUltraGX/apps/fceugx/
|
||||||
cp executables/fceugx-wii.dol dist/FCEUltraGX/apps/fceugx/boot.dol
|
cp executables/fceugx-wii.dol dist/FCEUltraGX/apps/fceugx/boot.dol
|
||||||
cp executables/fceugx-gc.dol dist/FCEUltraGX-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: FCEUltraGX
|
name: FCEUltraGX
|
||||||
path: |
|
path: |
|
||||||
dist/FCEUltraGX/
|
dist/FCEUltraGX/
|
||||||
|
|
||||||
- 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/FCEUltraGX-GameCube
|
||||||
|
cp executables/fceugx-gc.dol dist/FCEUltraGX-GameCube/
|
||||||
|
|
||||||
|
- name: Upload GameCube artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
if: ${{ matrix.image == 'GameCube' }}
|
||||||
with:
|
with:
|
||||||
name: FCEUltraGX-GameCube
|
name: FCEUltraGX-GameCube
|
||||||
path: |
|
path: |
|
||||||
|
Loading…
Reference in New Issue
Block a user