Files
swr-ini-tool/.github/workflows/build.yml
Niklas Friesen 68077f0359
Some checks failed
Build / switch (push) Failing after 5s
CI: run devkitPro build via docker so checkout/actions keep Node
Job-level devkitpro container made actions/checkout fail (no node). Run
make inside docker run on the default ubuntu runner; works with act.

Made-with: Cursor
2026-03-30 20:12:02 +02:00

36 lines
876 B
YAML

name: Build
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
switch:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
# Build inside devkitPro image only. A job-level container would run every
# step there and break actions/checkout (needs Node). Same issue with `act`.
- name: Compile (Switch .nro)
run: |
docker run --rm \
-v "${{ github.workspace }}:/work" \
-w /work \
-e DEVKITPRO=/opt/devkitpro \
devkitpro/devkita64:latest \
bash -lc '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