Files
swr-ini-tool/.github/workflows/build.yml
Niklas Friesen 3aceffc1eb
Some checks failed
Build / Build (push) Failing after 29s
CI: devkita64 container + apt nodejs (like other OmniNX jobs)
- Use devkitpro/devkita64 for Switch (not devkitARM).
- apt install nodejs before checkout so actions/checkout works in container.
- Add workflow_dispatch; keep PR/push to main and master.
- upload-artifact@v4.

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

41 lines
910 B
YAML

name: Build
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
switch:
name: Build
runs-on: ubuntu-latest
container:
# Switch homebrew uses devkitA64 + libnx (not devkitARM)
image: devkitpro/devkita64:latest
permissions:
contents: read
steps:
# actions/checkout needs Node; devkitPro images omit it by default
- name: Install dependencies
run: apt-get update && apt-get install -y nodejs
- name: Checkout
uses: actions/checkout@v4
with:
clean: true
- name: Compile (Switch .nro)
env:
DEVKITPRO: /opt/devkitpro
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