Skip to content

Commit 622e2c3

Browse files
committed
Apply Node20 workaround
1 parent 0630607 commit 622e2c3

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,24 +181,32 @@ jobs:
181181
os: macos-15
182182

183183
runs-on: ${{matrix.os}}
184-
container: ${{matrix.container}}
184+
185+
container:
186+
image: ${{matrix.container}}
187+
volumes:
188+
- /node20217:/node20217:rw,rshared
189+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
185190

186191
defaults:
187192
run:
188193
shell: bash
189194

190195
steps:
191-
- name: Enable Node 16
192-
run: |
193-
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
194-
195-
- uses: actions/checkout@v3
196-
197196
- name: Setup container environment
198197
if: matrix.container
199198
run: |
200199
apt-get update
201-
apt-get -y install sudo python3 git g++
200+
apt-get -y install sudo python3 git g++ curl xz-utils
201+
202+
- name: Install nodejs20glibc2.17
203+
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
204+
run: |
205+
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
206+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
207+
ldd /__e/node20/bin/node
208+
209+
- uses: actions/checkout@v4
202210

203211
- name: Install packages
204212
if: matrix.install

0 commit comments

Comments
 (0)