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