CI: install devkitPro on runner instead of nested docker
Some checks failed
Build / switch (push) Failing after 18s
Some checks failed
Build / switch (push) Failing after 18s
Nested docker run broke under act (empty /work, no Makefile). Use official install-devkitpro-pacman + dkp-pacman switch-dev on ubuntu-latest. Made-with: Cursor
This commit is contained in:
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@@ -12,20 +12,31 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
env:
|
||||||
|
DEVKITPRO: /opt/devkitpro
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Build inside devkitPro image only. A job-level container would run every
|
# Install toolchain on the runner (no nested docker). Nested `docker run -v
|
||||||
# step there and break actions/checkout (needs Node). Same issue with `act`.
|
# "$GITHUB_WORKSPACE"` fails under act: the mount points at an empty path.
|
||||||
- name: Compile (Switch .nro)
|
- name: Install devkitPro
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
set -euo pipefail
|
||||||
-v "${{ github.workspace }}:/work" \
|
wget -q -U "dkp-apt" -O ./install-devkitpro-pacman https://apt.devkitpro.org/install-devkitpro-pacman
|
||||||
-w /work \
|
chmod +x ./install-devkitpro-pacman
|
||||||
-e DEVKITPRO=/opt/devkitpro \
|
yes | sudo ./install-devkitpro-pacman
|
||||||
devkitpro/devkita64:latest \
|
sudo dkp-pacman -Sy
|
||||||
bash -lc 'make -j$(nproc)'
|
sudo dkp-pacman -S switch-dev --noconfirm
|
||||||
|
|
||||||
|
- name: Add devkitPro tools to PATH
|
||||||
|
run: |
|
||||||
|
echo "/opt/devkitpro/devkitA64/bin" >> "$GITHUB_PATH"
|
||||||
|
echo "/opt/devkitpro/tools/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
|
- name: Compile (Switch .nro)
|
||||||
|
run: make -j$(nproc)
|
||||||
|
|
||||||
- name: Upload .nro artifact
|
- name: Upload .nro artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user