Files
swr-ini-tool/.github/workflows/build.yml
Niklas Friesen 42f7fe1aaf
All checks were successful
Build / Build (push) Successful in 29s
CI: use upload-artifact@v3 for GHES compatibility
GitHub Enterprise Server does not support artifact v4+ yet.

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

42 lines
986 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)
# v3: GHES does not support upload-artifact v4+ (artifact v2 backend)
- name: Upload .nro artifact
uses: actions/upload-artifact@v3
with:
name: swr-ini-tool
path: swr-ini-tool.nro
if-no-files-found: error