2020-11-13 19:05:13 +01:00
|
|
|
name: Build binaries
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Cache
|
|
|
|
id: cache-1
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: cache
|
|
|
|
key: ${{ runner.os }}-cache-1
|
|
|
|
|
2021-09-01 22:51:09 +02:00
|
|
|
- name: Download devkitPPC r36, libogc 1.8.24, bin2s and elf2dol
|
2020-11-13 19:05:13 +01:00
|
|
|
if: steps.cache-1.outputs.cache-hit != 'true'
|
|
|
|
# general-tools is needed for bin2s and gamecube-tools is needed for elf2dol
|
|
|
|
run: |
|
|
|
|
mkdir cache && cd cache
|
2021-09-01 22:51:09 +02:00
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/devkitPPC-r36-1-linux.pkg.tar.xz"
|
2021-09-01 23:54:44 +02:00
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/devkitppc-rules-1.0.1-1-any.pkg.xz"
|
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/libogc-1.8.24-1-any.pkg.tar.xz"
|
2020-11-13 19:05:13 +01:00
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/general-tools-1.2.0-1-linux.pkg.tar.xz"
|
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/gamecube-tools-1.0.2-1-linux.pkg.tar.xz"
|
|
|
|
cd ..
|
|
|
|
|
2021-09-01 22:51:09 +02:00
|
|
|
- name: Extract devkitPPC r36, libogc 1.8.24, bin2s and elf2dol
|
2020-11-13 19:05:13 +01:00
|
|
|
# general-tools is needed for bin2s and gamecube-tools is needed for elf2dol
|
|
|
|
run: |
|
2021-09-01 22:51:09 +02:00
|
|
|
tar -xf cache/devkitPPC-r36-1-linux.pkg.tar.xz opt/devkitpro/devkitPPC --strip-components=1
|
2021-09-01 23:54:44 +02:00
|
|
|
tar -xf cache/devkitppc-rules-1.0.1-1-any.pkg.xz opt/devkitpro/devkitPPC --strip-components=1
|
|
|
|
tar -xf cache/libogc-1.8.24-1-any.pkg.tar.xz opt/devkitpro/libogc --strip-components=1
|
2020-11-13 19:05:13 +01:00
|
|
|
tar -xf cache/general-tools-1.2.0-1-linux.pkg.tar.xz opt/devkitpro/tools/bin/bin2s --strip-components=4
|
|
|
|
sudo cp bin2s /usr/local/bin/bin2s
|
|
|
|
tar -xf cache/gamecube-tools-1.0.2-1-linux.pkg.tar.xz opt/devkitpro/tools/bin/elf2dol --strip-components=4
|
|
|
|
sudo cp elf2dol /usr/local/bin/elf2dol
|
|
|
|
|
|
|
|
- name: Compile
|
|
|
|
run: |
|
|
|
|
PATH=$(pwd)/devkitpro/devkitPPC/bin:$PATH DEVKITPPC=$(pwd)/devkitpro/devkitPPC DEVKITPRO=$(pwd)/devkitpro make
|
2021-09-01 22:59:41 +02:00
|
|
|
- name: Package
|
2021-04-03 01:16:21 +02:00
|
|
|
id: pack
|
2020-11-13 19:05:13 +01:00
|
|
|
run: |
|
|
|
|
cp -r wii/apps apps
|
|
|
|
mkdir -p apps/wiiflow/
|
|
|
|
cp -r out/bins apps/wiiflow/bins
|
|
|
|
cp -r out/imgs apps/wiiflow/imgs
|
|
|
|
cp out/boot.dol apps/wiiflow/
|
|
|
|
mkdir -p wiiflow
|
|
|
|
cp -r wii/wiiflow/Languages wiiflow/languages
|
2021-04-03 22:44:06 +02:00
|
|
|
cp -r wii/wiiflow/themes_lite wiiflow/themes_lite
|
2021-04-03 01:02:19 +02:00
|
|
|
echo "::set-output name=sha::$(echo ${GITHUB_SHA} | head -c 7)"
|
2020-11-13 19:05:13 +01:00
|
|
|
|
|
|
|
- name: Upload binaries
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-04-03 00:46:34 +02:00
|
|
|
name: wiiflow_lite_${{ steps.pack.outputs.sha }}
|
2020-11-13 19:05:13 +01:00
|
|
|
path: |
|
|
|
|
apps
|
|
|
|
wiiflow
|