Skip to content

Commit bfdf0c7

Browse files
authored
Merge pull request #139 from Flamefire/patch-1
Fix node 20 issue on GHA CI
2 parents 121f3ef + e1c6b5b commit bfdf0c7

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010

1111
env:
1212
UBSAN_OPTIONS: print_stacktrace=1
13-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1413

1514
jobs:
1615
posix:
@@ -69,8 +68,7 @@ jobs:
6968
address-model: 32,64
7069
- toolset: gcc-13
7170
cxxstd: "03,11,14,17,20,2b"
72-
os: ubuntu-latest
73-
container: ubuntu:23.04
71+
os: ubuntu-24.04
7472
install: g++-13-multilib
7573
address-model: 32,64
7674
- toolset: clang
@@ -144,37 +142,40 @@ jobs:
144142
- toolset: clang
145143
compiler: clang++-16
146144
cxxstd: "03,11,14,17,20,2b"
147-
container: ubuntu:23.04
148-
os: ubuntu-latest
145+
os: ubuntu-24.04
149146
install: clang-16
150147
- toolset: clang
151148
compiler: clang++-17
152149
cxxstd: "03,11,14,17,20,2b"
153-
container: ubuntu:23.10
154-
os: ubuntu-latest
150+
os: ubuntu-24.04
155151
install: clang-17
156-
- toolset: clang
157-
cxxstd: "03,11,14,17,20,2b"
158-
os: macos-12
159152
- toolset: clang
160153
cxxstd: "03,11,14,17,20,2b"
161154
os: macos-13
162155

163156
runs-on: ${{matrix.os}}
164-
container: ${{matrix.container}}
157+
container:
158+
image: ${{matrix.container}}
159+
volumes:
160+
- /node20217:/node20217:rw,rshared
161+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
165162

166163
defaults:
167164
run:
168165
shell: bash
169166

170167
steps:
171-
- uses: actions/checkout@v3
172-
173168
- name: Setup container environment
174169
if: matrix.container
175170
run: |
176171
apt-get update
177-
apt-get -y install sudo python3 git g++
172+
apt-get -y install sudo python3 git g++ curl
173+
if [[ "${{matrix.container}}" == "ubuntu:1"* ]]; then
174+
# Node 20 doesn't work with Ubuntu 16/18 glibc: https://github.com/actions/checkout/issues/1590
175+
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
176+
fi
177+
178+
- uses: actions/checkout@v4
178179

179180
- name: Install packages
180181
if: matrix.install

0 commit comments

Comments
 (0)