Skip to content

Commit 04f2927

Browse files
committed
[try pretty wild workaround]
1 parent b8188f6 commit 04f2927

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ jobs:
136136

137137
name: ${{ matrix.job_name }}
138138
runs-on: ${{ matrix.os }}
139-
container: ${{ matrix.container_image }}
139+
container:
140+
image: ${{ matrix.container_image }}
141+
volumes: # needed for Alpine aarch64 job: https://github.com/actions/runner/issues/801#issuecomment-2394425757
142+
- /:/host
140143
timeout-minutes: 90
141144
env:
142145
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.arch == 'arm64' && '11.0' || '10.12' }}
@@ -162,6 +165,16 @@ jobs:
162165
# create ../llvm symlink to distro LLVM (no prebuilt LDC-LLVM for musl)
163166
ln -s /usr/lib/llvm19 $(dirname $(pwd))/llvm
164167
../llvm/bin/llvm-config --version
168+
169+
# see https://github.com/actions/runner/issues/801#issuecomment-2394425757
170+
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
177+
fi
165178
fi
166179
- uses: actions/checkout@v4
167180
with:

0 commit comments

Comments
 (0)