Some checks failed
Build / switch (push) Failing after 18s
Nested docker run broke under act (empty /work, no Makefile). Use official install-devkitpro-pacman + dkp-pacman switch-dev on ubuntu-latest. Made-with: Cursor
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
pull_request:
|
|
branches: [main, master]
|
|
|
|
jobs:
|
|
switch:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
DEVKITPRO: /opt/devkitpro
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# Install toolchain on the runner (no nested docker). Nested `docker run -v
|
|
# "$GITHUB_WORKSPACE"` fails under act: the mount points at an empty path.
|
|
- name: Install devkitPro
|
|
run: |
|
|
set -euo pipefail
|
|
wget -q -U "dkp-apt" -O ./install-devkitpro-pacman https://apt.devkitpro.org/install-devkitpro-pacman
|
|
chmod +x ./install-devkitpro-pacman
|
|
yes | sudo ./install-devkitpro-pacman
|
|
sudo dkp-pacman -Sy
|
|
sudo dkp-pacman -S switch-dev --noconfirm
|
|
|
|
- name: Add devkitPro tools to PATH
|
|
run: |
|
|
echo "/opt/devkitpro/devkitA64/bin" >> "$GITHUB_PATH"
|
|
echo "/opt/devkitpro/tools/bin" >> "$GITHUB_PATH"
|
|
|
|
- name: Compile (Switch .nro)
|
|
run: make -j$(nproc)
|
|
|
|
- name: Upload .nro artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: swr-ini-tool
|
|
path: swr-ini-tool.nro
|
|
if-no-files-found: error
|