2022-04-08 21:29:48 +00:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2022-04-08 21:40:25 +00:00
|
|
|
container: devkitpro/devkitppc:latest
|
2022-04-08 21:47:12 +00:00
|
|
|
env:
|
|
|
|
WINEPREFIX: ${{github.workspace}}/.wine
|
2022-08-22 14:16:37 +00:00
|
|
|
strategy:
|
2022-08-22 14:18:25 +00:00
|
|
|
fail-fast: false
|
2022-08-22 14:16:37 +00:00
|
|
|
matrix:
|
2022-08-23 03:54:30 +00:00
|
|
|
version: [0, 1, kor]
|
2022-04-08 21:29:48 +00:00
|
|
|
steps:
|
2022-07-19 00:06:07 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Checkout WiBo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
repository: decompals/WiBo
|
|
|
|
path: tools/WiBo
|
2022-07-14 16:24:26 +00:00
|
|
|
- name: Install dependencies
|
2022-04-08 21:29:48 +00:00
|
|
|
run: |
|
|
|
|
sudo dpkg --add-architecture i386
|
2022-04-08 21:40:25 +00:00
|
|
|
sudo apt-get update
|
2022-11-26 04:36:25 +00:00
|
|
|
sudo apt-get -y install build-essential ninja-build python3 python3-requests gcc-multilib g++-multilib libc6:i386
|
2022-04-08 21:29:48 +00:00
|
|
|
curl -L https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip \
|
|
|
|
| bsdtar -xvf- -C tools --exclude Wii
|
2022-07-19 00:06:07 +00:00
|
|
|
mv tools/GC/* tools/mwcc_compiler/
|
|
|
|
- name: Build WiBo
|
|
|
|
working-directory: tools/WiBo
|
|
|
|
run: |
|
|
|
|
cmake -B build
|
|
|
|
cmake --build build
|
|
|
|
- name: Build
|
2022-10-07 08:39:43 +00:00
|
|
|
run: |
|
|
|
|
python3 configure.py --map --version ${{matrix.version}} --wine ./tools/WiBo/build/wibo
|
|
|
|
ninja
|
2022-11-26 04:36:25 +00:00
|
|
|
- name: Upload progress
|
|
|
|
continue-on-error: true
|
|
|
|
env:
|
|
|
|
PROGRESS_API_KEY: ${{secrets.PROGRESS_API_KEY}}
|
|
|
|
run: |
|
|
|
|
python3 tools/upload-progress.py -b https://progress.deco.mp/ -p prime -v ${{matrix.version}} \
|
|
|
|
build/mp1.${{matrix.version}}/main.dol.progress
|
2022-07-19 00:06:07 +00:00
|
|
|
- name: Upload map
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2022-08-22 14:21:58 +00:00
|
|
|
name: MetroidPrime-${{matrix.version}}.MAP
|
|
|
|
path: build/*/MetroidPrime.MAP
|