Skip to content

Commit 0c5decc

Browse files
committed
Apply Node20 workaround
1 parent 8944fa5 commit 0c5decc

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
@@ -54,20 +54,32 @@ jobs:
5454
cxxstd: 17
5555

5656
runs-on: ${{matrix.os}}
57-
container: ${{matrix.container}}
57+
58+
container:
59+
image: ${{matrix.container}}
60+
volumes:
61+
- /node20217:/node20217:rw,rshared
62+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
5863

5964
defaults:
6065
run:
6166
shell: bash
6267

6368
steps:
64-
- uses: actions/checkout@v3
65-
6669
- name: Setup container environment
6770
if: matrix.container
6871
run: |
6972
apt-get update
70-
apt-get -y install sudo python3 git g++
73+
apt-get -y install sudo python3 git g++ curl xz-utils
74+
75+
- name: Install nodejs20glibc2.17
76+
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
77+
run: |
78+
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
79+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
80+
ldd /__e/node20/bin/node
81+
82+
- uses: actions/checkout@v4
7183

7284
- name: Install packages
7385
if: matrix.install

0 commit comments

Comments
 (0)