From 68077f0359c2b48a74afca4bab071f42e8f61249 Mon Sep 17 00:00:00 2001 From: Niklas Friesen Date: Mon, 30 Mar 2026 20:12:02 +0200 Subject: [PATCH] CI: run devkitPro build via docker so checkout/actions keep Node 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 --- .github/workflows/build.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 862aee4..18e597e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,21 +9,23 @@ on: jobs: switch: runs-on: ubuntu-latest - container: - image: devkitpro/devkita64:latest permissions: contents: read + steps: - name: Checkout uses: actions/checkout@v4 - - name: Configure git safe directory - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - + # 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) - env: - DEVKITPRO: /opt/devkitpro - run: make -j$(nproc) + 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