Skip to content

Commit 8561bdb

Browse files
committed
Apply Node20 workaround
1 parent 6260906 commit 8561bdb

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
@@ -118,24 +118,32 @@ jobs:
118118
os: macos-15
119119

120120
runs-on: ${{matrix.os}}
121-
container: ${{matrix.container}}
121+
122+
container:
123+
image: ${{matrix.container}}
124+
volumes:
125+
- /node20217:/node20217:rw,rshared
126+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
122127

123128
defaults:
124129
run:
125130
shell: bash
126131

127132
steps:
128-
- name: Enable Node 16
129-
run: |
130-
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
131-
132-
- uses: actions/checkout@v3
133-
134133
- name: Setup container environment
135134
if: matrix.container
136135
run: |
137136
apt-get update
138-
apt-get -y install sudo python3 git g++
137+
apt-get -y install sudo python3 git g++ curl xz-utils
138+
139+
- name: Install nodejs20glibc2.17
140+
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
141+
run: |
142+
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
143+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
144+
ldd /__e/node20/bin/node
145+
146+
- uses: actions/checkout@v4
139147

140148
- name: Install packages
141149
if: matrix.install

0 commit comments

Comments
 (0)