From de1c6a25981dc608163952923f40f67cba2dd8c5 Mon Sep 17 00:00:00 2001 From: Etienne Haarsma Date: Mon, 19 Feb 2024 21:44:44 +0100 Subject: [PATCH] Updated CI actions (#505) --- .github/workflows/build.yml | 42 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b84ee2a..67f7650 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,10 +10,10 @@ jobs: matrix: image: ["Wii", "GameCube"] container: devkitpro/devkitppc:latest - + steps: - name: Checkout fceugx repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -21,14 +21,14 @@ jobs: if: ${{ matrix.image == 'Wii' }} run: | make -f Makefile.wii -j1 - + - name: Copy Wii artifacts if: ${{ matrix.image == 'Wii' }} - run: | + run: | mkdir -p dist/FCEUltraGX/apps/fceugx mkdir -p dist/FCEUltraGX/fceugx/roms 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/cheats/cheatsdir touch dist/FCEUltraGX/fceugx/saves/savesdir @@ -36,49 +36,49 @@ jobs: cp executables/fceugx-wii.dol dist/FCEUltraGX/apps/fceugx/boot.dol - name: Upload Wii artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ matrix.image == 'Wii' }} - with: + with: name: FCEUltraGX path: | - dist/FCEUltraGX/ - + dist/FCEUltraGX/ + - name: Build GameCube if: ${{ matrix.image == 'GameCube' }} run: | make -f Makefile.gc -j1 - + - name: Copy GameCube artifact if: ${{ matrix.image == 'GameCube' }} - run: | + run: | mkdir -p dist/FCEUltraGX-GameCube cp executables/fceugx-gc.dol dist/FCEUltraGX-GameCube/ - + - name: Upload GameCube artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ matrix.image == 'GameCube' }} - with: + with: name: FCEUltraGX-GameCube path: | - dist/FCEUltraGX-GameCube/ + dist/FCEUltraGX-GameCube/ release: name: Release runs-on: ubuntu-latest needs: [build] if: github.ref == 'refs/heads/master' - + steps: - name: Checkout fceugx repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: dist - + - name: Re-zip artifacts run: | cd dist @@ -87,12 +87,12 @@ jobs: rm -r FCEUltraGX/fceugx/saves/* zip -r FCEUltraGX.zip FCEUltraGX zip -r FCEUltraGX-GameCube.zip FCEUltraGX-GameCube - + - name: Update Git Tag run: | git tag -f Pre-release git push -f origin Pre-release - + - name: Create Release uses: ncipollo/release-action@v1 with: