Skip to content

Commit b71717d

Browse files
committed
[try newer workaround]
1 parent 60eec9c commit b71717d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ jobs:
138138
runs-on: ${{ matrix.os }}
139139
container:
140140
image: ${{ matrix.container_image }}
141-
volumes: # needed for Alpine aarch64 job: https://github.com/actions/runner/issues/801#issuecomment-2394425757
142-
- /:/host
141+
volumes: # needed for Alpine aarch64 job: https://github.com/actions/runner/issues/801#issuecomment-2976165281
142+
- /opt:/opt:rw,rshared
143+
- /opt:/__e/node20:ro,rshared
143144
timeout-minutes: 90
144145
env:
145146
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.arch == 'arm64' && '11.0' || '10.12' }}
@@ -166,14 +167,12 @@ jobs:
166167
ln -s /usr/lib/llvm19 $(dirname $(pwd))/llvm
167168
../llvm/bin/llvm-config --version
168169
169-
# see https://github.com/actions/runner/issues/801#issuecomment-2394425757
170+
# see https://github.com/actions/runner/issues/801#issuecomment-2976165281
170171
if [[ '${{ matrix.arch }}' == aarch64 ]]; then
171-
apk add nodejs
172-
sed -i "s:ID=alpine:ID=NotpineForGHA:" /etc/os-release
173-
cd /host/home/runner/runners/*/externals/
174-
rm -rf node20/*
175-
mkdir node20/bin
176-
ln -s /usr/bin/node node20/bin/node
172+
sed -i "/^ID=/s/alpine/NotpineForGHA/" /etc/os-release
173+
apk add nodejs --update-cache
174+
mkdir /opt/bin
175+
ln -s /usr/bin/node /opt/bin/node
177176
fi
178177
fi
179178
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)