Skip to content

Commit f8bc34d

Browse files
authored
Merge pull request #28 from Flamefire/patch-1
Fix node 20 issue on GHA CI
2 parents fe90ca4 + 0b71c6e commit f8bc34d

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ jobs:
6767
address-model: 32,64
6868
- toolset: gcc-13
6969
cxxstd: "03,11,14,17,20,2b"
70-
os: ubuntu-latest
71-
container: ubuntu:23.04
70+
os: ubuntu-24.04
7271
install: g++-13-multilib
7372
address-model: 32,64
7473
- toolset: gcc-14
@@ -145,24 +144,19 @@ jobs:
145144
- toolset: clang
146145
compiler: clang++-16
147146
cxxstd: "03,11,14,17,20,2b"
148-
container: ubuntu:23.04
149-
os: ubuntu-latest
147+
os: ubuntu-24.04
150148
install: clang-16
151149
- toolset: clang
152150
compiler: clang++-17
153151
cxxstd: "03,11,14,17,20,2b"
154-
container: ubuntu:23.10
155-
os: ubuntu-latest
152+
os: ubuntu-24.04
156153
install: clang-17
157154
- toolset: clang
158155
compiler: clang++-18
159156
cxxstd: "03,11,14,17,20,2b"
160157
container: ubuntu:24.04
161158
os: ubuntu-latest
162159
install: clang-18
163-
- toolset: clang
164-
cxxstd: "03,11,14,17,20,2b"
165-
os: macos-12
166160
- toolset: clang
167161
cxxstd: "03,11,14,17,20,2b"
168162
os: macos-13
@@ -171,24 +165,28 @@ jobs:
171165
os: macos-14
172166

173167
runs-on: ${{matrix.os}}
174-
container: ${{matrix.container}}
168+
container:
169+
image: ${{matrix.container}}
170+
volumes:
171+
- /node20217:/node20217:rw,rshared
172+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
175173

176174
defaults:
177175
run:
178176
shell: bash
179177

180178
steps:
181-
- name: Enable Node 16
182-
run: |
183-
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
184-
185-
- uses: actions/checkout@v3
186-
187179
- name: Setup container environment
188180
if: matrix.container
189181
run: |
190182
apt-get update
191-
apt-get -y install sudo python3 git g++
183+
apt-get -y install sudo python3 git g++ curl xz-utils
184+
if [[ "${{matrix.container}}" == "ubuntu:1"* ]]; then
185+
# Node 20 doesn't work with Ubuntu 16/18 glibc: https://github.com/actions/checkout/issues/1590
186+
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
187+
fi
188+
189+
- uses: actions/checkout@v4
192190

193191
- name: Install packages
194192
if: matrix.install
@@ -295,7 +293,6 @@ jobs:
295293
include:
296294
- os: ubuntu-20.04
297295
- os: ubuntu-22.04
298-
- os: macos-12
299296
- os: macos-13
300297
- os: macos-14
301298

@@ -343,7 +340,6 @@ jobs:
343340
include:
344341
- os: ubuntu-20.04
345342
- os: ubuntu-22.04
346-
- os: macos-12
347343
- os: macos-13
348344
- os: macos-14
349345

@@ -401,7 +397,6 @@ jobs:
401397
include:
402398
- os: ubuntu-20.04
403399
- os: ubuntu-22.04
404-
- os: macos-12
405400
- os: macos-13
406401
- os: macos-14
407402

0 commit comments

Comments
 (0)