Skip to content

Commit

Permalink
Updated CI actions (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
bladeoner authored Feb 19, 2024
1 parent 202179e commit 1000811
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ jobs:
matrix:
image: ["Wii", "GameCube"]
container: devkitpro/devkitppc:latest

steps:
- name: Checkout snes9xgx repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build Wii
if: ${{ matrix.image == 'Wii' }}
run: |
make -f Makefile.wii -j2
- name: Copy Wii artifacts
if: ${{ matrix.image == 'Wii' }}
run: |
run: |
mkdir -p dist/Snes9xGX/apps/snes9xgx
mkdir -p dist/Snes9xGX/snes9xgx/roms
mkdir dist/Snes9xGX/snes9xgx/cheats
Expand All @@ -36,31 +36,31 @@ jobs:
cp executables/snes9xgx-wii.dol dist/Snes9xGX/apps/snes9xgx/boot.dol
- name: Upload Wii artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ matrix.image == 'Wii' }}
with:
with:
name: Snes9xGX
path: |
dist/Snes9xGX/
dist/Snes9xGX/
- name: Build GameCube
if: ${{ matrix.image == 'GameCube' }}
run: |
make -f Makefile.gc -j2
- name: Copy GameCube artifact
if: ${{ matrix.image == 'GameCube' }}
run: |
run: |
mkdir -p dist/Snes9xGX-GameCube
cp executables/snes9xgx-gc.dol dist/Snes9xGX-GameCube/
- name: Upload GameCube artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ matrix.image == 'GameCube' }}
with:
with:
name: Snes9xGX-GameCube
path: |
dist/Snes9xGX-GameCube/
dist/Snes9xGX-GameCube/
release:
name: Release
Expand All @@ -70,12 +70,12 @@ jobs:

steps:
- name: Checkout snes9xgx repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Artifacts
uses: actions/download-artifact@v3

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: dist

Expand All @@ -92,7 +92,7 @@ jobs:
run: |
git tag -f Pre-release
git push -f origin Pre-release
- name: Create Release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 1000811

Please sign in to comment.