Skip to content

Commit 582363c

Browse files
committed
Fix GHA CI
Use a compatible node20 Remove macos-11 jobs (no more runners)
1 parent aec18d3 commit 582363c

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/ci.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ env:
1313

1414
jobs:
1515
posix:
16+
defaults:
17+
run:
18+
shell: bash
19+
1620
strategy:
1721
fail-fast: false
1822
matrix:
@@ -39,9 +43,6 @@ jobs:
3943
cxxstd: 20
4044
os: ubuntu-22.04
4145
install: clang-15
42-
- toolset: clang
43-
os: macos-11
44-
cxxstd: 11
4546
- toolset: clang
4647
os: macos-12
4748
cxxstd: 14
@@ -50,20 +51,28 @@ jobs:
5051
cxxstd: 17
5152

5253
runs-on: ${{matrix.os}}
53-
container: ${{matrix.container}}
54+
container:
55+
image: ${{matrix.container}}
56+
volumes:
57+
- /node20217:/node20217:rw,rshared
58+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
5459

5560
defaults:
5661
run:
5762
shell: bash
5863

5964
steps:
60-
- uses: actions/checkout@v3
61-
6265
- name: Setup container environment
6366
if: matrix.container
6467
run: |
6568
apt-get update
66-
apt-get -y install sudo python3 git g++
69+
apt-get -y install sudo python3 git g++ curl
70+
if [[ "${{matrix.container}}" == "ubuntu:1"* ]]; then
71+
# Node 20 doesn't work with Ubuntu 16/18 glibc: https://github.com/actions/checkout/issues/1590
72+
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
73+
fi
74+
75+
- uses: actions/checkout@v4
6776

6877
- name: Install packages
6978
if: matrix.install

0 commit comments

Comments
 (0)