Some checks failed
Build / switch (push) Failing after 5s
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
36 lines
876 B
YAML
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
|