mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-08 06:40:45 +01:00
Updated CI actions (#505)
This commit is contained in:
parent
92e1580618
commit
de1c6a2598
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
@ -10,10 +10,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
image: ["Wii", "GameCube"]
|
image: ["Wii", "GameCube"]
|
||||||
container: devkitpro/devkitppc:latest
|
container: devkitpro/devkitppc:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout fceugx repo
|
- name: Checkout fceugx repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@ -21,14 +21,14 @@ jobs:
|
|||||||
if: ${{ matrix.image == 'Wii' }}
|
if: ${{ matrix.image == 'Wii' }}
|
||||||
run: |
|
run: |
|
||||||
make -f Makefile.wii -j1
|
make -f Makefile.wii -j1
|
||||||
|
|
||||||
- name: Copy Wii artifacts
|
- name: Copy Wii artifacts
|
||||||
if: ${{ matrix.image == 'Wii' }}
|
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
|
||||||
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
|
||||||
@ -36,49 +36,49 @@ jobs:
|
|||||||
cp executables/fceugx-wii.dol dist/FCEUltraGX/apps/fceugx/boot.dol
|
cp executables/fceugx-wii.dol dist/FCEUltraGX/apps/fceugx/boot.dol
|
||||||
|
|
||||||
- name: Upload Wii artifacts
|
- name: Upload Wii artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ matrix.image == 'Wii' }}
|
if: ${{ matrix.image == 'Wii' }}
|
||||||
with:
|
with:
|
||||||
name: FCEUltraGX
|
name: FCEUltraGX
|
||||||
path: |
|
path: |
|
||||||
dist/FCEUltraGX/
|
dist/FCEUltraGX/
|
||||||
|
|
||||||
- name: Build GameCube
|
- name: Build GameCube
|
||||||
if: ${{ matrix.image == 'GameCube' }}
|
if: ${{ matrix.image == 'GameCube' }}
|
||||||
run: |
|
run: |
|
||||||
make -f Makefile.gc -j1
|
make -f Makefile.gc -j1
|
||||||
|
|
||||||
- name: Copy GameCube artifact
|
- name: Copy GameCube artifact
|
||||||
if: ${{ matrix.image == 'GameCube' }}
|
if: ${{ matrix.image == 'GameCube' }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist/FCEUltraGX-GameCube
|
mkdir -p dist/FCEUltraGX-GameCube
|
||||||
cp executables/fceugx-gc.dol dist/FCEUltraGX-GameCube/
|
cp executables/fceugx-gc.dol dist/FCEUltraGX-GameCube/
|
||||||
|
|
||||||
- name: Upload GameCube artifact
|
- name: Upload GameCube artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ matrix.image == 'GameCube' }}
|
if: ${{ matrix.image == 'GameCube' }}
|
||||||
with:
|
with:
|
||||||
name: FCEUltraGX-GameCube
|
name: FCEUltraGX-GameCube
|
||||||
path: |
|
path: |
|
||||||
dist/FCEUltraGX-GameCube/
|
dist/FCEUltraGX-GameCube/
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout fceugx repo
|
- name: Checkout fceugx repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Download Artifacts
|
- name: Download Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
- name: Re-zip artifacts
|
- name: Re-zip artifacts
|
||||||
run: |
|
run: |
|
||||||
cd dist
|
cd dist
|
||||||
@ -87,12 +87,12 @@ jobs:
|
|||||||
rm -r FCEUltraGX/fceugx/saves/*
|
rm -r FCEUltraGX/fceugx/saves/*
|
||||||
zip -r FCEUltraGX.zip FCEUltraGX
|
zip -r FCEUltraGX.zip FCEUltraGX
|
||||||
zip -r FCEUltraGX-GameCube.zip FCEUltraGX-GameCube
|
zip -r FCEUltraGX-GameCube.zip FCEUltraGX-GameCube
|
||||||
|
|
||||||
- name: Update Git Tag
|
- name: Update Git Tag
|
||||||
run: |
|
run: |
|
||||||
git tag -f Pre-release
|
git tag -f Pre-release
|
||||||
git push -f origin Pre-release
|
git push -f origin Pre-release
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user