2020-07-22 17:21:35 +02:00
|
|
|
name: VBA GX Build
|
2020-07-21 23:11:31 +02:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ubuntu-20.04
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
container: devkitpro/devkitppc:latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make -j2
|
2020-10-25 17:19:56 +01:00
|
|
|
|
|
|
|
- name: Copy files
|
|
|
|
run: |
|
2020-10-25 19:31:39 +01:00
|
|
|
mkdir -p dist/VisualBoyAdvanceGX/apps/vbagx
|
|
|
|
mkdir -p dist/VisualBoyAdvanceGX/vbagx/roms
|
|
|
|
mkdir dist/VisualBoyAdvanceGX/vbagx/saves
|
|
|
|
mkdir dist/VisualBoyAdvanceGX-GameCube/
|
2020-12-24 19:11:46 +01:00
|
|
|
touch dist/VisualBoyAdvanceGX/vbagx/roms/romsdir
|
|
|
|
touch dist/VisualBoyAdvanceGX/vbagx/saves/savesdir
|
2020-10-25 19:31:39 +01:00
|
|
|
cp hbc/* dist/VisualBoyAdvanceGX/apps/vbagx/
|
|
|
|
cp executables/vbagx-wii.dol dist/VisualBoyAdvanceGX/apps/vbagx/boot.dol
|
|
|
|
cp executables/vbagx-gc.dol dist/VisualBoyAdvanceGX-GameCube/
|
2020-07-21 23:11:31 +02:00
|
|
|
|
2020-10-25 17:19:56 +01:00
|
|
|
- name: Upload Wii Build Artifacts
|
2020-07-21 23:11:31 +02:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-10-25 19:46:10 +01:00
|
|
|
name: VisualBoyAdvanceGX
|
2020-10-25 17:19:56 +01:00
|
|
|
path: |
|
2020-10-25 19:31:39 +01:00
|
|
|
dist/VisualBoyAdvanceGX/
|
2020-10-25 17:19:56 +01:00
|
|
|
|
|
|
|
- name: Upload GameCube Build Artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-10-25 19:46:10 +01:00
|
|
|
name: VisualBoyAdvanceGX-GameCube
|
2020-10-25 17:19:56 +01:00
|
|
|
path: |
|
2020-10-25 19:31:39 +01:00
|
|
|
dist/VisualBoyAdvanceGX-GameCube/
|