File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -175,24 +175,28 @@ jobs:
175
175
os : macos-15
176
176
177
177
runs-on : ${{matrix.os}}
178
- container : ${{matrix.container}}
178
+ container :
179
+ image : ${{matrix.container}}
180
+ volumes :
181
+ - /node20217:/node20217:rw,rshared
182
+ - ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
179
183
180
184
defaults :
181
185
run :
182
186
shell : bash
183
187
184
188
steps :
185
- - name : Enable Node 16
186
- run : |
187
- echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
188
-
189
- - uses : actions/checkout@v3
190
-
191
189
- name : Setup container environment
192
190
if : matrix.container
193
191
run : |
194
192
apt-get update
195
- apt-get -y install sudo python3 git g++
193
+ apt-get -y install sudo python3 git g++ curl
194
+ if [[ "${{matrix.container}}" == "ubuntu:1"* ]]; then
195
+ # Node 20 doesn't work with Ubuntu 16/18 glibc: https://github.com/actions/checkout/issues/1590
196
+ curl -sL https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz | tar -xJ --strip-components 1 -C /node20217
197
+ fi
198
+
199
+ - uses : actions/checkout@v4
196
200
197
201
- name : Install packages
198
202
if : matrix.install
You can’t perform that action at this time.
0 commit comments