mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-21 18:19:16 +01:00
Updated CI actions (#472)
This commit is contained in:
parent
eb1c6988b4
commit
eec4bea870
36
.github/workflows/build.yml
vendored
36
.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 vbagx repo
|
- name: Checkout vbagx repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@ -21,10 +21,10 @@ 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/VisualBoyAdvanceGX/apps/vbagx
|
mkdir -p dist/VisualBoyAdvanceGX/apps/vbagx
|
||||||
mkdir -p dist/VisualBoyAdvanceGX/vbagx/roms
|
mkdir -p dist/VisualBoyAdvanceGX/vbagx/roms
|
||||||
mkdir dist/VisualBoyAdvanceGX/vbagx/saves
|
mkdir dist/VisualBoyAdvanceGX/vbagx/saves
|
||||||
@ -34,46 +34,46 @@ jobs:
|
|||||||
cp executables/vbagx-wii.dol dist/VisualBoyAdvanceGX/apps/vbagx/boot.dol
|
cp executables/vbagx-wii.dol dist/VisualBoyAdvanceGX/apps/vbagx/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: VisualBoyAdvanceGX
|
name: VisualBoyAdvanceGX
|
||||||
path: |
|
path: |
|
||||||
dist/VisualBoyAdvanceGX/
|
dist/VisualBoyAdvanceGX/
|
||||||
|
|
||||||
- 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/VisualBoyAdvanceGX-GameCube
|
mkdir -p dist/VisualBoyAdvanceGX-GameCube
|
||||||
cp executables/vbagx-gc.dol dist/VisualBoyAdvanceGX-GameCube/
|
cp executables/vbagx-gc.dol dist/VisualBoyAdvanceGX-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: VisualBoyAdvanceGX-GameCube
|
name: VisualBoyAdvanceGX-GameCube
|
||||||
path: |
|
path: |
|
||||||
dist/VisualBoyAdvanceGX-GameCube/
|
dist/VisualBoyAdvanceGX-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 vbagx repo
|
- name: Checkout vbagx 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user