Skip to content

Commit 33cfc56

Browse files
committed
GHA: Override node20 in old containers
1 parent bed0e1b commit 33cfc56

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ jobs:
227227

228228
needs: [runner-selection]
229229
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.os] }}
230-
container: ${{ matrix.container }}
230+
container:
231+
image: ${{ matrix.container }}
232+
volumes:
233+
- /node20217:/node20217:rw,rshared
234+
- /node20217:/__e/node20:ro,rshared
231235

232236
steps:
233237
- name: Setup container environment
@@ -246,9 +250,11 @@ jobs:
246250
sudo python3 get-pip.py
247251
sudo /usr/local/bin/pip install cmake
248252
249-
if [[ "${{matrix.container}}" == "ubuntu:16.04" ]] || [[ "${{matrix.container}}" == "ubuntu:18.04" ]]; then
250-
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
251-
fi
253+
- name: Install nodejs20glibc2.17
254+
if: matrix.container == 'ubuntu:16.04' || matrix.container == 'ubuntu:18.04'
255+
run: |
256+
curl -LO https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
257+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
252258
253259
- uses: actions/checkout@v3
254260

0 commit comments

Comments
 (0)