2020-11-13 19:05:13 +01:00
|
|
|
name: Build binaries
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-03-17 14:47:25 +01:00
|
|
|
runs-on: ubuntu-latest
|
2020-11-13 19:05:13 +01:00
|
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
2023-03-17 14:47:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-13 19:05:13 +01:00
|
|
|
|
|
|
|
- name: Cache
|
2022-11-30 16:09:04 +01:00
|
|
|
id: cache-1
|
2023-03-17 14:47:25 +01:00
|
|
|
uses: actions/cache@v3
|
2020-11-13 19:05:13 +01:00
|
|
|
with:
|
|
|
|
path: cache
|
2022-11-30 16:09:04 +01:00
|
|
|
key: ${{ runner.os }}-cache-1
|
2020-11-13 19:05:13 +01:00
|
|
|
|
2022-11-30 15:56:17 +01:00
|
|
|
- name: Download devkitPPC r41-2, libogc 2.3.1 and required tools
|
2022-11-30 16:09:04 +01:00
|
|
|
if: steps.cache-1.outputs.cache-hit != 'true'
|
2020-11-13 19:05:13 +01:00
|
|
|
# general-tools is needed for bin2s and gamecube-tools is needed for elf2dol
|
|
|
|
run: |
|
|
|
|
mkdir cache && cd cache
|
2022-11-30 15:56:17 +01:00
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/devkitPPC-r41-2-linux_x86_64.pkg.tar.xz"
|
2021-09-06 21:16:45 +02:00
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/devkitppc-rules-1.1.1-1-any.pkg.tar.xz"
|
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/libogc-2.3.1-1-any.pkg.tar.xz"
|
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/general-tools-1.2.0-2-linux_x86_64.pkg.tar.xz"
|
|
|
|
wget "https://wii.leseratte10.de/devkitPro/file.php/gamecube-tools-1.0.3-1-linux_x86_64.pkg.tar.xz"
|
2020-11-13 19:05:13 +01:00
|
|
|
cd ..
|
|
|
|
|
2021-09-06 22:30:37 +02:00
|
|
|
- name: Extract downloaded files
|
2020-11-13 19:05:13 +01:00
|
|
|
# general-tools is needed for bin2s and gamecube-tools is needed for elf2dol
|
|
|
|
run: |
|
2022-11-30 15:56:17 +01:00
|
|
|
tar -xf cache/devkitPPC-r41-2-linux_x86_64.pkg.tar.xz --strip-components=1
|
2021-09-06 22:30:37 +02:00
|
|
|
tar -xf cache/devkitppc-rules-1.1.1-1-any.pkg.tar.xz --strip-components=1
|
|
|
|
tar -xf cache/libogc-2.3.1-1-any.pkg.tar.xz --strip-components=1
|
|
|
|
tar -xf cache/general-tools-1.2.0-2-linux_x86_64.pkg.tar.xz --strip-components=1
|
|
|
|
tar -xf cache/gamecube-tools-1.0.3-1-linux_x86_64.pkg.tar.xz --strip-components=1
|
2020-11-13 19:05:13 +01:00
|
|
|
|
|
|
|
- name: Compile
|
|
|
|
run: |
|
|
|
|
PATH=$(pwd)/devkitpro/devkitPPC/bin:$PATH DEVKITPPC=$(pwd)/devkitpro/devkitPPC DEVKITPRO=$(pwd)/devkitpro make
|
2023-03-17 14:56:52 +01:00
|
|
|
|
2021-09-01 22:59:41 +02:00
|
|
|
- name: Package
|
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
|
2023-03-17 18:23:12 +01:00
|
|
|
echo "sha=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV
|
2020-11-13 19:05:13 +01:00
|
|
|
|
|
|
|
- name: Upload binaries
|
2023-03-17 15:36:17 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-11-13 19:05:13 +01:00
|
|
|
with:
|
2023-03-17 14:47:25 +01:00
|
|
|
name: wiiflow_lite_${{ env.sha }}
|
2020-11-13 19:05:13 +01:00
|
|
|
path: |
|
|
|
|
apps
|
|
|
|
wiiflow
|