Skip to content

Commit c36e2d4

Browse files
committed
ci.yml: override Node20 in old containers
1 parent 57d46d8 commit c36e2d4

File tree

1 file changed

+38
-32
lines changed

1 file changed

+38
-32
lines changed

.github/workflows/ci.yml

+38-32
Original file line numberDiff line numberDiff line change
@@ -169,52 +169,54 @@ jobs:
169169
version: "*"
170170
cxx: "clang++"
171171
cc: "clang"
172-
runs-on: "macos-14"
172+
runs-on: "macos-15"
173173
b2-toolset: "clang"
174174
is-latest: true
175-
name: "Apple-Clang (macOS 14)"
175+
name: "Apple-Clang (macOS 15)"
176176
build-type: "Release"
177177
build-cmake: true
178178

179179
- compiler: "apple-clang"
180180
version: "*"
181181
cxx: "clang++"
182182
cc: "clang"
183-
runs-on: "macos-14"
183+
runs-on: "macos-15"
184184
b2-toolset: "clang"
185185
is-latest: true
186-
name: "Apple-Clang (macOS 14, ubsan)"
186+
name: "Apple-Clang (macOS 15, ubsan)"
187187
build-type: "RelWithDebInfo"
188188
ubsan: true
189189

190190
- compiler: "apple-clang"
191191
version: "*"
192192
cxx: "clang++"
193193
cc: "clang"
194-
runs-on: "macos-14"
194+
runs-on: "macos-15"
195195
b2-toolset: "clang"
196196
is-latest: true
197-
name: "Apple-Clang (macOS 14, asan)"
197+
name: "Apple-Clang (macOS 15, asan)"
198198
build-type: "RelWithDebInfo"
199199
asan: true
200200

201201
- compiler: "apple-clang"
202202
version: "*"
203203
cxx: "clang++"
204204
cc: "clang"
205-
runs-on: "macos-13"
205+
runs-on: "macos-14"
206206
b2-toolset: "clang"
207-
name: "Apple-Clang (macOS 13)"
207+
name: "Apple-Clang (macOS 14)"
208208
build-type: "Release"
209+
build-cmake: true
209210

210211
- compiler: "apple-clang"
211212
version: "*"
212213
cxx: "clang++"
213214
cc: "clang"
214-
runs-on: "macos-12"
215+
runs-on: "macos-13"
215216
b2-toolset: "clang"
216-
name: "Apple-Clang (macOS 12)"
217+
name: "Apple-Clang (macOS 14)"
217218
build-type: "Release"
219+
build-cmake: true
218220

219221
# Linux compilers
220222
#
@@ -364,8 +366,7 @@ jobs:
364366
latest-cxxstd: "20"
365367
cxx: "g++-13"
366368
cc: "gcc-13"
367-
runs-on: "ubuntu-latest"
368-
container: "ubuntu:23.04"
369+
runs-on: "ubuntu-24.04"
369370
b2-toolset: "gcc"
370371
name: "GCC 13: C++17-20"
371372
build-type: "Release"
@@ -377,8 +378,7 @@ jobs:
377378
latest-cxxstd: "20"
378379
cxx: "g++-13"
379380
cc: "gcc-13"
380-
runs-on: "ubuntu-latest"
381-
container: "ubuntu:23.04"
381+
runs-on: "ubuntu-24.04"
382382
b2-toolset: "gcc"
383383
is-latest: true
384384
name: "GCC 13: C++17-20 (coverage)"
@@ -608,8 +608,7 @@ jobs:
608608
latest-cxxstd: "20"
609609
cxx: "clang++-17"
610610
cc: "clang-17"
611-
runs-on: "ubuntu-latest"
612-
container: "ubuntu:23.10"
611+
runs-on: "ubuntu-24.04"
613612
b2-toolset: "clang"
614613
name: "Clang 17: C++17-20"
615614
build-type: "Release"
@@ -621,8 +620,7 @@ jobs:
621620
latest-cxxstd: "20"
622621
cxx: "clang++-16"
623622
cc: "clang-16"
624-
runs-on: "ubuntu-latest"
625-
container: "ubuntu:23.04"
623+
runs-on: "ubuntu-24.04"
626624
b2-toolset: "clang"
627625
name: "Clang 16: C++17-20"
628626
build-type: "Release"
@@ -803,12 +801,20 @@ jobs:
803801
container:
804802
image: ${{ matrix.container }}
805803
options: --privileged
804+
volumes:
805+
- /node20217:/node20217:rw,rshared
806+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
806807
timeout-minutes: 120
807808

808809
steps:
809-
- name: Enable Node 16
810+
- name: install nodejs20glibc2.17
811+
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
810812
run: |
811-
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
813+
apt-get update
814+
apt-get -yqq install xz-utils curl
815+
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
816+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
817+
ldd /__e/node20/bin/node
812818
813819
- name: Clone Boost.HTTP.Proto
814820
uses: actions/checkout@v3
@@ -823,7 +829,7 @@ jobs:
823829
ref: develop
824830

825831
- name: Setup C++
826-
uses: alandefreitas/cpp-actions/[email protected].2
832+
uses: alandefreitas/cpp-actions/[email protected].7
827833
id: setup-cpp
828834
with:
829835
compiler: ${{ matrix.compiler }}
@@ -832,7 +838,7 @@ jobs:
832838
trace-commands: true
833839

834840
- name: Install packages
835-
uses: alandefreitas/cpp-actions/[email protected].2
841+
uses: alandefreitas/cpp-actions/[email protected].7
836842
id: package-install
837843
with:
838844
apt-get-add-architecture: 'i386'
@@ -841,7 +847,7 @@ jobs:
841847
build-essential
842848
843849
- name: Clone Boost
844-
uses: alandefreitas/cpp-actions/[email protected].2
850+
uses: alandefreitas/cpp-actions/[email protected].7
845851
id: boost-clone
846852
with:
847853
branch: ${{ (github.ref_name == 'master' && github.ref_name) || 'develop' }}
@@ -850,7 +856,7 @@ jobs:
850856
scan-modules-ignore: http_proto
851857

852858
- name: Install zlib (Windows)
853-
uses: alandefreitas/cpp-actions/[email protected].2
859+
uses: alandefreitas/cpp-actions/[email protected].7
854860
if: ${{ startsWith(matrix.runs-on, 'windows') && !matrix.skip-zlib }}
855861
id: zlib-install
856862
with:
@@ -918,7 +924,7 @@ jobs:
918924
python3 tools/boostdep/depinst/depinst.py $module
919925
920926
- name: Boost B2 Workflow
921-
uses: alandefreitas/cpp-actions/[email protected].2
927+
uses: alandefreitas/cpp-actions/[email protected].7
922928
if: ${{ !matrix.coverage && !matrix.time-trace }}
923929
env:
924930
ASAN_OPTIONS: ${{ ((matrix.compiler == 'apple-clang' || matrix.compiler == 'clang') && 'detect_invalid_pointer_pairs=0:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1') || 'detect_invalid_pointer_pairs=2:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1' }}
@@ -940,7 +946,7 @@ jobs:
940946
extra-args: ${{ (matrix.valgrind && 'testing.launcher=valgrind' || '' )}}
941947

942948
- name: Boost CMake Workflow
943-
uses: alandefreitas/cpp-actions/[email protected].2
949+
uses: alandefreitas/cpp-actions/[email protected].7
944950
if: ${{ matrix.coverage || matrix.time-trace || matrix.build-cmake || matrix.is-earliest }}
945951
with:
946952
source-dir: boost-root
@@ -977,7 +983,7 @@ jobs:
977983
echo "LD_LIBRARY_PATH=$GITHUB_WORKSPACE/.local/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
978984
979985
- name: Find Package Integration Workflow
980-
uses: alandefreitas/cpp-actions/[email protected].2
986+
uses: alandefreitas/cpp-actions/[email protected].7
981987
if: ${{ matrix.build-cmake || matrix.is-earliest }}
982988
with:
983989
source-dir: boost-root/libs/${{ steps.patch.outputs.module }}/test/cmake_test
@@ -1001,7 +1007,7 @@ jobs:
10011007
toolchain: ${{ (startsWith(matrix.runs-on, 'windows') && steps.patch-user-config.outputs.toolchain) || '' }}
10021008

10031009
- name: Subdirectory Integration Workflow
1004-
uses: alandefreitas/cpp-actions/[email protected].2
1010+
uses: alandefreitas/cpp-actions/[email protected].7
10051011
if: ${{ matrix.build-cmake || matrix.is-earliest }}
10061012
with:
10071013
source-dir: boost-root/libs/${{ steps.patch.outputs.module }}/test/cmake_test
@@ -1022,7 +1028,7 @@ jobs:
10221028
toolchain: ${{ (startsWith(matrix.runs-on, 'windows') && steps.patch-user-config.outputs.toolchain) || '' }}
10231029

10241030
- name: Root Project CMake Workflow
1025-
uses: alandefreitas/cpp-actions/[email protected].2
1031+
uses: alandefreitas/cpp-actions/[email protected].7
10261032
if: ${{ matrix.build-cmake || matrix.is-earliest }}
10271033
with:
10281034
source-dir: boost-root/libs/${{ steps.patch.outputs.module }}
@@ -1046,7 +1052,7 @@ jobs:
10461052
toolchain: ${{ (startsWith(matrix.runs-on, 'windows') && steps.patch-user-config.outputs.toolchain) || '' }}
10471053

10481054
- name: FlameGraph
1049-
uses: alandefreitas/cpp-actions/[email protected].2
1055+
uses: alandefreitas/cpp-actions/[email protected].7
10501056
if: matrix.time-trace
10511057
with:
10521058
source-dir: boost-root/libs/http_proto
@@ -1099,7 +1105,7 @@ jobs:
10991105
fetch-depth: 100
11001106

11011107
- name: Changelog
1102-
uses: alandefreitas/cpp-actions/[email protected].2
1108+
uses: alandefreitas/cpp-actions/[email protected].7
11031109
with:
11041110
thank-non-regular: ${{ startsWith(github.ref, 'refs/tags/') }}
11051111
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1118,7 +1124,7 @@ jobs:
11181124
node-version: 18
11191125

11201126
- name: Setup C++
1121-
uses: alandefreitas/cpp-actions/[email protected].2
1127+
uses: alandefreitas/cpp-actions/[email protected].7
11221128
id: setup-cpp
11231129
with:
11241130
compiler: clang

0 commit comments

Comments
 (0)