Skip to content

Commit 593ddc7

Browse files
committed
Apply Node20 workaround
1 parent 9fd5cd1 commit 593ddc7

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/ci.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -164,20 +164,32 @@ jobs:
164164
os: macos-15
165165

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

169174
defaults:
170175
run:
171176
shell: bash
172177

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

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

0 commit comments

Comments
 (0)