Skip to content

Commit 41f91c2

Browse files
committed
Update ci.yml
1 parent 6fba35a commit 41f91c2

File tree

1 file changed

+87
-59
lines changed

1 file changed

+87
-59
lines changed

.github/workflows/ci.yml

Lines changed: 87 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -43,37 +43,43 @@ jobs:
4343
address-model: 32,64
4444
- toolset: gcc-7
4545
cxxstd: "11,14,17"
46-
os: ubuntu-20.04
46+
container: ubuntu:20.04
47+
os: ubuntu-latest
4748
install: g++-7-multilib
4849
address-model: 32,64
4950
- toolset: gcc-8
5051
cxxstd: "11,14,17,2a"
51-
os: ubuntu-20.04
52+
container: ubuntu:20.04
53+
os: ubuntu-latest
5254
install: g++-8-multilib
5355
address-model: 32,64
5456
- toolset: gcc-9
5557
cxxstd: "11,14,17,2a"
56-
os: ubuntu-20.04
58+
container: ubuntu:20.04
59+
os: ubuntu-latest
5760
install: g++-9-multilib
5861
address-model: 32,64
5962
- toolset: gcc-10
6063
cxxstd: "11,14,17,2a"
61-
os: ubuntu-20.04
64+
container: ubuntu:20.04
65+
os: ubuntu-latest
6266
install: g++-10-multilib
6367
address-model: 32,64
6468
- toolset: gcc-11
6569
cxxstd: "11,14,17,20,2b"
66-
os: ubuntu-22.04
70+
container: ubuntu:22.04
71+
os: ubuntu-latest
6772
install: g++-11-multilib
6873
address-model: 32,64
6974
- toolset: gcc-12
7075
cxxstd: "11,14,17,20,2b"
71-
os: ubuntu-22.04
76+
container: ubuntu:22.04
77+
os: ubuntu-latest
7278
install: g++-12-multilib
7379
address-model: 32,64
7480
- toolset: gcc-13
7581
cxxstd: "11,14,17,20,2b"
76-
container: ubuntu:23.04
82+
container: ubuntu:24.04
7783
os: ubuntu-latest
7884
install: g++-13-multilib
7985
address-model: 32,64
@@ -83,6 +89,12 @@ jobs:
8389
os: ubuntu-latest
8490
install: g++-14-multilib
8591
address-model: 32,64
92+
- toolset: gcc-15
93+
cxxstd: "11,14,17,20,23,2c"
94+
container: ubuntu:25.10
95+
os: ubuntu-latest
96+
install: g++-15-multilib
97+
address-model: 32,64
8698
- toolset: clang
8799
compiler: clang++-3.9
88100
cxxstd: "11,14"
@@ -104,35 +116,45 @@ jobs:
104116
- toolset: clang
105117
compiler: clang++-6.0
106118
cxxstd: "11,14,17"
107-
os: ubuntu-20.04
119+
container: ubuntu:20.04
120+
os: ubuntu-latest
108121
install: clang-6.0
109122
- toolset: clang
110123
compiler: clang++-7
111124
cxxstd: "11,14,17"
112-
os: ubuntu-20.04
125+
container: ubuntu:20.04
126+
os: ubuntu-latest
113127
install: clang-7
114128
- toolset: clang
115129
compiler: clang++-8
116130
cxxstd: "11,14,17"
117-
os: ubuntu-20.04
131+
container: ubuntu:20.04
132+
os: ubuntu-latest
118133
install: clang-8
119134
- toolset: clang
120135
compiler: clang++-9
121136
cxxstd: "11,14,17"
122-
os: ubuntu-20.04
137+
container: ubuntu:20.04
138+
os: ubuntu-latest
123139
install: clang-9
124140
- toolset: clang
125141
compiler: clang++-10
126142
cxxstd: "11,14,17,2a"
127-
os: ubuntu-20.04
143+
container: ubuntu:20.04
144+
os: ubuntu-latest
145+
install: clang-10
128146
- toolset: clang
129147
compiler: clang++-11
130148
cxxstd: "11,14,17,2a"
131-
os: ubuntu-20.04
149+
container: ubuntu:20.04
150+
os: ubuntu-latest
151+
install: clang-11
132152
- toolset: clang
133153
compiler: clang++-12
134154
cxxstd: "11,14,17,20"
135-
os: ubuntu-20.04
155+
container: ubuntu:20.04
156+
os: ubuntu-latest
157+
install: clang-12
136158
- toolset: clang
137159
compiler: clang++-13
138160
cxxstd: "11,14,17,20"
@@ -154,13 +176,13 @@ jobs:
154176
- toolset: clang
155177
compiler: clang++-16
156178
cxxstd: "11,14,17,20,2b"
157-
container: ubuntu:23.04
179+
container: ubuntu:24.04
158180
os: ubuntu-latest
159181
install: clang-16
160182
- toolset: clang
161183
compiler: clang++-17
162184
cxxstd: "11,14,17,20,2b"
163-
container: ubuntu:23.10
185+
container: ubuntu:24.04
164186
os: ubuntu-latest
165187
install: clang-17
166188
- toolset: clang
@@ -170,34 +192,60 @@ jobs:
170192
os: ubuntu-latest
171193
install: clang-18
172194
- toolset: clang
195+
compiler: clang++-19
173196
cxxstd: "11,14,17,20,2b"
174-
os: macos-12
197+
container: ubuntu:24.04
198+
os: ubuntu-latest
199+
install: clang-19
175200
- toolset: clang
176-
cxxstd: "11,14,17,20,2b"
177-
os: macos-13
201+
compiler: clang++-20
202+
cxxstd: "11,14,17,20,23,2c"
203+
container: ubuntu:24.04
204+
os: ubuntu-latest
205+
install: clang-20
206+
- toolset: clang
207+
compiler: clang++-21
208+
cxxstd: "11,14,17,20,23,2c"
209+
container: ubuntu:25.10
210+
os: ubuntu-latest
211+
install: clang-21
178212
- toolset: clang
179-
cxxstd: "11,14,17,20,2b"
180213
os: macos-14
214+
cxxstd: "11,14,17,20,2b"
215+
- toolset: clang
216+
os: macos-15
217+
cxxstd: "11,14,17,20,23,2c"
218+
- toolset: clang
219+
os: macos-26
220+
cxxstd: "11,14,17,20,23,2c"
181221

182222
runs-on: ${{matrix.os}}
183-
container: ${{matrix.container}}
223+
224+
container:
225+
image: ${{matrix.container}}
226+
volumes:
227+
- /node20217:/node20217:rw,rshared
228+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
184229

185230
defaults:
186231
run:
187232
shell: bash
188233

189234
steps:
190-
- name: Enable Node 16
191-
run: |
192-
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
193-
194-
- uses: actions/checkout@v3
195-
196235
- name: Setup container environment
197236
if: matrix.container
198237
run: |
199238
apt-get update
200-
apt-get -y install sudo python3 git g++
239+
apt-get -y install sudo python3 git g++ curl xz-utils
240+
241+
- name: Install nodejs20glibc2.17
242+
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
243+
run: |
244+
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
245+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
246+
ldd /__e/node20/bin/node
247+
248+
- uses: actions/checkout@v4
201249

202250
- name: Install packages
203251
if: matrix.install
@@ -243,26 +291,18 @@ jobs:
243291
fail-fast: false
244292
matrix:
245293
include:
246-
- toolset: msvc-14.0
247-
cxxstd: 14,latest
248-
addrmd: 32,64
249-
os: windows-2019
250-
- toolset: msvc-14.2
251-
cxxstd: "14,17,20,latest"
252-
addrmd: 32,64
253-
os: windows-2019
254294
- toolset: msvc-14.3
255295
cxxstd: "14,17,20,latest"
256296
addrmd: 32,64
257297
os: windows-2022
258298
- toolset: clang-win
259-
cxxstd: "14,17,latest"
299+
cxxstd: "14,17,20,latest"
260300
addrmd: 32,64
261301
os: windows-2022
262302
- toolset: gcc
263303
cxxstd: "11,14,17,2a"
264304
addrmd: 64
265-
os: windows-2019
305+
os: windows-2022
266306

267307
runs-on: ${{matrix.os}}
268308

@@ -302,11 +342,8 @@ jobs:
302342
fail-fast: false
303343
matrix:
304344
include:
305-
- os: ubuntu-20.04
306-
- os: ubuntu-22.04
307-
- os: macos-12
308-
- os: macos-13
309-
- os: macos-14
345+
- os: ubuntu-latest
346+
- os: macos-latest
310347

311348
runs-on: ${{matrix.os}}
312349

@@ -350,11 +387,8 @@ jobs:
350387
fail-fast: false
351388
matrix:
352389
include:
353-
- os: ubuntu-20.04
354-
- os: ubuntu-22.04
355-
- os: macos-12
356-
- os: macos-13
357-
- os: macos-14
390+
- os: ubuntu-latest
391+
- os: macos-latest
358392

359393
runs-on: ${{matrix.os}}
360394

@@ -408,11 +442,8 @@ jobs:
408442
fail-fast: false
409443
matrix:
410444
include:
411-
- os: ubuntu-20.04
412-
- os: ubuntu-22.04
413-
- os: macos-12
414-
- os: macos-13
415-
- os: macos-14
445+
- os: ubuntu-latest
446+
- os: macos-latest
416447

417448
runs-on: ${{matrix.os}}
418449

@@ -464,8 +495,7 @@ jobs:
464495
fail-fast: false
465496
matrix:
466497
include:
467-
- os: windows-2019
468-
- os: windows-2022
498+
- os: windows-latest
469499

470500
runs-on: ${{matrix.os}}
471501

@@ -513,8 +543,7 @@ jobs:
513543
fail-fast: false
514544
matrix:
515545
include:
516-
- os: windows-2019
517-
- os: windows-2022
546+
- os: windows-latest
518547

519548
runs-on: ${{matrix.os}}
520549

@@ -580,8 +609,7 @@ jobs:
580609
fail-fast: false
581610
matrix:
582611
include:
583-
- os: windows-2019
584-
- os: windows-2022
612+
- os: windows-latest
585613

586614
runs-on: ${{matrix.os}}
587615

0 commit comments

Comments
 (0)