Skip to content

Commit fcd634a

Browse files
authored
Merge pull request #435 from Flamefire/patch-1
Fix node 20 issue on GHA CI
2 parents aeeb091 + 9428a50 commit fcd634a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/ci.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ env:
2727
GIT_FETCH_JOBS: 8
2828
NET_RETRY_COUNT: 5
2929
DEFAULT_BUILD_VARIANT: release
30-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3130

3231
jobs:
3332
posix:
@@ -251,9 +250,6 @@ jobs:
251250
- libc++-14-dev
252251
- libc++abi-14-dev
253252

254-
- toolset: clang
255-
cxxstd: "11,14"
256-
os: macos-12
257253
- toolset: clang
258254
cxxstd: "20"
259255
os: macos-13
@@ -262,7 +258,11 @@ jobs:
262258
os: macos-14
263259

264260
runs-on: ${{matrix.os}}
265-
container: ${{matrix.container}}
261+
container:
262+
image: ${{matrix.container}}
263+
volumes:
264+
- /node20217:/node20217:rw,rshared
265+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
266266

267267
steps:
268268
- name: Setup environment
@@ -286,9 +286,13 @@ jobs:
286286
fi
287287
apt-get -o Acquire::Retries=$NET_RETRY_COUNT install -y sudo software-properties-common tzdata wget curl apt-transport-https ca-certificates make build-essential g++ $PYTHON_PACKAGE python3 perl git cmake
288288
fi
289+
if [[ "${{matrix.container}}" == "ubuntu:1"* ]]; then
290+
# Node 20 doesn't work with Ubuntu 16/18 glibc: https://github.com/actions/checkout/issues/1590
291+
curl -sL https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz | tar -xJ --strip-components 1 -C /node20217
292+
fi
289293
fi
290294
git config --global pack.threads 0
291-
- uses: actions/checkout@v3
295+
- uses: actions/checkout@v4
292296

293297
- name: Install packages
294298
if: matrix.install

0 commit comments

Comments
 (0)