name: Build binaries on: push: branches: - "**" paths-ignore: - '**.md' - '.devcontainer/**' - '.github/ISSUE_TEMPLATE/**' - '.github/FUNDING.yml' - '.github/**/*.md' - '.vscode/**' - 'HBC/**' - 'Languages/**' pull_request: paths-ignore: - '**.md' - '.devcontainer/**' - '.github/ISSUE_TEMPLATE/**' - '.github/FUNDING.yml' - '.github/**/*.md' - '.vscode/**' - 'HBC/**' - 'Languages/**' jobs: download-build-tools: runs-on: ubuntu-latest timeout-minutes: 20 steps: - name: Restore cache id: cache-1 uses: actions/cache@v3 with: path: cache key: ${{ runner.os }}-cache-1 - name: Download devkitPPC r41, libogc 2.3.1 and required tools if: steps.cache-1.outputs.cache-hit != 'true' # general-tools is needed for bin2s and gamecube-tools is needed for elf2dol & gcdsptool run: | mkdir cache && cd cache wget "https://wii.leseratte10.de/devkitPro/file.php/devkitPPC-r41-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: Verify checksums run: | sha256sum -c <> $GITHUB_ENV - name: Upload binary uses: actions/upload-artifact@v3 with: name: usbloadergx_${{ env.sha }} path: upload - name: Upload debug binary uses: actions/upload-artifact@v3 with: name: usbloadergx_${{ env.sha }}_debug path: boot.elf