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