WiiFlow_Lite/.github/workflows/main.yml
2021-09-06 16:26:37 -05:00

63 lines
2.4 KiB
YAML

name: Build binaries
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Cache
id: cache-2
uses: actions/cache@v2
with:
path: cache
key: ${{ runner.os }}-cache-2
- name: Download devkitPPC r39, libogc 2.3.1 and required tools
if: steps.cache-2.outputs.cache-hit != 'true'
# general-tools is needed for bin2s and gamecube-tools is needed for elf2dol
run: |
mkdir cache && cd cache
wget "https://wii.leseratte10.de/devkitPro/file.php/devkitPPC-r39-2-linux_x86_64.pkg.tar.xz"
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"
cd ..
- name: Extract downloaded files
# general-tools is needed for bin2s and gamecube-tools is needed for elf2dol
run: |
tar -xf cache/devkitPPC-r39-2-linux_x86_64.pkg.tar.xz --strip-components=1
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
- name: Compile
run: |
PATH=$(pwd)/devkitpro/devkitPPC/bin:$PATH DEVKITPPC=$(pwd)/devkitpro/devkitPPC DEVKITPRO=$(pwd)/devkitpro make
- name: Package
id: pack
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
cp -r wii/wiiflow/themes_lite wiiflow/themes_lite
echo "::set-output name=sha::$(echo ${GITHUB_SHA} | head -c 7)"
- name: Upload binaries
uses: actions/upload-artifact@v2
with:
name: wiiflow_lite_${{ steps.pack.outputs.sha }}
path: |
apps
wiiflow