Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated CI actions #505

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,75 +10,75 @@ 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

- name: Build Wii
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
cp hbc/* dist/FCEUltraGX/apps/fceugx/
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
Expand All @@ -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:
Expand Down