Skip to content

Commit 7406b86

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

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/ci.yml

+18-13
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:
@@ -40,30 +44,31 @@ jobs:
4044
os: ubuntu-22.04
4145
install: clang-15
4246
- toolset: clang
43-
os: macos-11
44-
cxxstd: 11
45-
- toolset: clang
46-
os: macos-12
47+
os: macos-13
4748
cxxstd: 14
4849
- toolset: clang
49-
os: macos-13
50+
os: macos-14
5051
cxxstd: 17
5152

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

5960
steps:
60-
- uses: actions/checkout@v3
61-
6261
- name: Setup container environment
6362
if: matrix.container
6463
run: |
6564
apt-get update
66-
apt-get -y install sudo python3 git g++
65+
apt-get -y install sudo python3 git g++ curl
66+
if [[ "${{matrix.container}}" == "ubuntu:1"* ]]; then
67+
# Node 20 doesn't work with Ubuntu 16/18 glibc: https://github.com/actions/checkout/issues/1590
68+
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
69+
fi
70+
71+
- uses: actions/checkout@v4
6772

6873
- name: Install packages
6974
if: matrix.install

0 commit comments

Comments
 (0)