CI: run devkitPro build via docker so checkout/actions keep Node
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
This commit is contained in:
Niklas Friesen
2026-03-30 20:12:02 +02:00
parent c8c677d2db
commit 68077f0359

View File

@@ -9,21 +9,23 @@ on:
jobs: jobs:
switch: switch:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: devkitpro/devkita64:latest
permissions: permissions:
contents: read contents: read
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Configure git safe directory # Build inside devkitPro image only. A job-level container would run every
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" # step there and break actions/checkout (needs Node). Same issue with `act`.
- name: Compile (Switch .nro) - name: Compile (Switch .nro)
env: run: |
DEVKITPRO: /opt/devkitpro docker run --rm \
run: make -j$(nproc) -v "${{ github.workspace }}:/work" \
-w /work \
-e DEVKITPRO=/opt/devkitpro \
devkitpro/devkita64:latest \
bash -lc 'make -j$(nproc)'
- name: Upload .nro artifact - name: Upload .nro artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4