Skip to content

Commit f9ada37

Browse files
committed
Apply Node20 workaround
1 parent 910e57e commit f9ada37

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,20 +165,32 @@ jobs:
165165
os: macos-15
166166

167167
runs-on: ${{matrix.os}}
168-
container: ${{matrix.container}}
168+
169+
container:
170+
image: ${{matrix.container}}
171+
volumes:
172+
- /node20217:/node20217:rw,rshared
173+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
169174

170175
defaults:
171176
run:
172177
shell: bash
173178

174179
steps:
175-
- uses: actions/checkout@v3
176-
177180
- name: Setup container environment
178181
if: matrix.container
179182
run: |
180183
apt-get update
181-
apt-get -y install sudo python3 git g++
184+
apt-get -y install sudo python3 git g++ curl xz-utils
185+
186+
- name: Install nodejs20glibc2.17
187+
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
188+
run: |
189+
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
190+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
191+
ldd /__e/node20/bin/node
192+
193+
- uses: actions/checkout@v4
182194

183195
- name: Install packages
184196
if: matrix.install

0 commit comments

Comments
 (0)