forked from dborth/vbagx
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.68 KB
/
continuous-integration-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: VBA GX Build
on: [push, pull_request]
jobs:
build:
name: Build VBA GX
runs-on: ubuntu-latest
strategy:
matrix:
image: ["Wii", "GameCube"]
container: devkitpro/devkitppc:latest
steps:
- name: Checkout vbagx repo
uses: actions/checkout@v2
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: |
mkdir -p dist/VisualBoyAdvanceGX/apps/vbagx
mkdir -p dist/VisualBoyAdvanceGX/vbagx/roms
mkdir dist/VisualBoyAdvanceGX/vbagx/saves
touch dist/VisualBoyAdvanceGX/vbagx/roms/romsdir
touch dist/VisualBoyAdvanceGX/vbagx/saves/savesdir
cp hbc/* dist/VisualBoyAdvanceGX/apps/vbagx/
cp executables/vbagx-wii.dol dist/VisualBoyAdvanceGX/apps/vbagx/boot.dol
- name: Upload Wii artifacts
uses: actions/upload-artifact@v2
if: ${{ matrix.image == 'Wii' }}
with:
name: VisualBoyAdvanceGX
path: |
dist/VisualBoyAdvanceGX/
- name: Build GameCube
if: ${{ matrix.image == 'GameCube' }}
run: |
make -f Makefile.gc -j2
- name: Copy GameCube artifact
if: ${{ matrix.image == 'GameCube' }}
run: |
mkdir -p dist/VisualBoyAdvanceGX-GameCube
cp executables/vbagx-gc.dol dist/VisualBoyAdvanceGX-GameCube/
- name: Upload GameCube artifact
uses: actions/upload-artifact@v2
if: ${{ matrix.image == 'GameCube' }}
with:
name: VisualBoyAdvanceGX-GameCube
path: |
dist/VisualBoyAdvanceGX-GameCube/