Skip to content

Commit b69afb0

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

File tree

1 file changed

+26
-31
lines changed

1 file changed

+26
-31
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,6 @@ jobs:
207207
name: "Apple-Clang (macOS 13)"
208208
build-type: "Release"
209209

210-
- compiler: "apple-clang"
211-
version: "*"
212-
cxx: "clang++"
213-
cc: "clang"
214-
runs-on: "macos-12"
215-
b2-toolset: "clang"
216-
name: "Apple-Clang (macOS 12)"
217-
build-type: "Release"
218-
219210
# Linux compilers
220211
#
221212

@@ -364,8 +355,7 @@ jobs:
364355
latest-cxxstd: "20"
365356
cxx: "g++-13"
366357
cc: "gcc-13"
367-
runs-on: "ubuntu-latest"
368-
container: "ubuntu:23.04"
358+
runs-on: "ubuntu-24.04"
369359
b2-toolset: "gcc"
370360
name: "GCC 13: C++17-20"
371361
build-type: "Release"
@@ -377,8 +367,7 @@ jobs:
377367
latest-cxxstd: "20"
378368
cxx: "g++-13"
379369
cc: "gcc-13"
380-
runs-on: "ubuntu-latest"
381-
container: "ubuntu:23.04"
370+
runs-on: "ubuntu-24.04"
382371
b2-toolset: "gcc"
383372
is-latest: true
384373
name: "GCC 13: C++17-20 (coverage)"
@@ -608,8 +597,7 @@ jobs:
608597
latest-cxxstd: "20"
609598
cxx: "clang++-17"
610599
cc: "clang-17"
611-
runs-on: "ubuntu-latest"
612-
container: "ubuntu:23.10"
600+
runs-on: "ubuntu-24.04"
613601
b2-toolset: "clang"
614602
name: "Clang 17: C++17-20"
615603
build-type: "Release"
@@ -621,8 +609,7 @@ jobs:
621609
latest-cxxstd: "20"
622610
cxx: "clang++-16"
623611
cc: "clang-16"
624-
runs-on: "ubuntu-latest"
625-
container: "ubuntu:23.04"
612+
runs-on: "ubuntu-24.04"
626613
b2-toolset: "clang"
627614
name: "Clang 16: C++17-20"
628615
build-type: "Release"
@@ -803,12 +790,20 @@ jobs:
803790
container:
804791
image: ${{ matrix.container }}
805792
options: --privileged
793+
volumes:
794+
- /node20217:/node20217:rw,rshared
795+
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
806796
timeout-minutes: 120
807797

808798
steps:
809-
- name: Enable Node 16
799+
- name: install nodejs20glibc2.17
800+
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
810801
run: |
811-
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
802+
apt-get update
803+
apt-get -yqq install xz-utils curl
804+
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
805+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
806+
ldd /__e/node20/bin/node
812807
813808
- name: Clone Boost.HTTP.Proto
814809
uses: actions/checkout@v3
@@ -823,7 +818,7 @@ jobs:
823818
ref: develop
824819

825820
- name: Setup C++
826-
uses: alandefreitas/cpp-actions/setup-cpp@v1.8.2
821+
uses: alandefreitas/cpp-actions/setup-cpp@v1.8.7
827822
id: setup-cpp
828823
with:
829824
compiler: ${{ matrix.compiler }}
@@ -832,7 +827,7 @@ jobs:
832827
trace-commands: true
833828

834829
- name: Install packages
835-
uses: alandefreitas/cpp-actions/package-install@v1.8.2
830+
uses: alandefreitas/cpp-actions/package-install@v1.8.7
836831
id: package-install
837832
with:
838833
apt-get-add-architecture: 'i386'
@@ -841,7 +836,7 @@ jobs:
841836
build-essential
842837
843838
- name: Clone Boost
844-
uses: alandefreitas/cpp-actions/boost-clone@v1.8.2
839+
uses: alandefreitas/cpp-actions/boost-clone@v1.8.7
845840
id: boost-clone
846841
with:
847842
branch: ${{ (github.ref_name == 'master' && github.ref_name) || 'develop' }}
@@ -850,7 +845,7 @@ jobs:
850845
scan-modules-ignore: http_proto
851846

852847
- name: Install zlib (Windows)
853-
uses: alandefreitas/cpp-actions/package-install@v1.8.2
848+
uses: alandefreitas/cpp-actions/package-install@v1.8.7
854849
if: ${{ startsWith(matrix.runs-on, 'windows') && !matrix.skip-zlib }}
855850
id: zlib-install
856851
with:
@@ -918,7 +913,7 @@ jobs:
918913
python3 tools/boostdep/depinst/depinst.py $module
919914
920915
- name: Boost B2 Workflow
921-
uses: alandefreitas/cpp-actions/b2-workflow@v1.8.2
916+
uses: alandefreitas/cpp-actions/b2-workflow@v1.8.7
922917
if: ${{ !matrix.coverage && !matrix.time-trace }}
923918
env:
924919
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 +935,7 @@ jobs:
940935
extra-args: ${{ (matrix.valgrind && 'testing.launcher=valgrind' || '' )}}
941936

942937
- name: Boost CMake Workflow
943-
uses: alandefreitas/cpp-actions/cmake-workflow@v1.8.2
938+
uses: alandefreitas/cpp-actions/cmake-workflow@v1.8.7
944939
if: ${{ matrix.coverage || matrix.time-trace || matrix.build-cmake || matrix.is-earliest }}
945940
with:
946941
source-dir: boost-root
@@ -977,7 +972,7 @@ jobs:
977972
echo "LD_LIBRARY_PATH=$GITHUB_WORKSPACE/.local/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
978973
979974
- name: Find Package Integration Workflow
980-
uses: alandefreitas/cpp-actions/cmake-workflow@v1.8.2
975+
uses: alandefreitas/cpp-actions/cmake-workflow@v1.8.7
981976
if: ${{ matrix.build-cmake || matrix.is-earliest }}
982977
with:
983978
source-dir: boost-root/libs/${{ steps.patch.outputs.module }}/test/cmake_test
@@ -1001,7 +996,7 @@ jobs:
1001996
toolchain: ${{ (startsWith(matrix.runs-on, 'windows') && steps.patch-user-config.outputs.toolchain) || '' }}
1002997

1003998
- name: Subdirectory Integration Workflow
1004-
uses: alandefreitas/cpp-actions/cmake-workflow@v1.8.2
999+
uses: alandefreitas/cpp-actions/cmake-workflow@v1.8.7
10051000
if: ${{ matrix.build-cmake || matrix.is-earliest }}
10061001
with:
10071002
source-dir: boost-root/libs/${{ steps.patch.outputs.module }}/test/cmake_test
@@ -1022,7 +1017,7 @@ jobs:
10221017
toolchain: ${{ (startsWith(matrix.runs-on, 'windows') && steps.patch-user-config.outputs.toolchain) || '' }}
10231018

10241019
- name: Root Project CMake Workflow
1025-
uses: alandefreitas/cpp-actions/cmake-workflow@v1.8.2
1020+
uses: alandefreitas/cpp-actions/cmake-workflow@v1.8.7
10261021
if: ${{ matrix.build-cmake || matrix.is-earliest }}
10271022
with:
10281023
source-dir: boost-root/libs/${{ steps.patch.outputs.module }}
@@ -1046,7 +1041,7 @@ jobs:
10461041
toolchain: ${{ (startsWith(matrix.runs-on, 'windows') && steps.patch-user-config.outputs.toolchain) || '' }}
10471042

10481043
- name: FlameGraph
1049-
uses: alandefreitas/cpp-actions/flamegraph@v1.8.2
1044+
uses: alandefreitas/cpp-actions/flamegraph@v1.8.7
10501045
if: matrix.time-trace
10511046
with:
10521047
source-dir: boost-root/libs/http_proto
@@ -1099,7 +1094,7 @@ jobs:
10991094
fetch-depth: 100
11001095

11011096
- name: Changelog
1102-
uses: alandefreitas/cpp-actions/create-changelog@v1.8.2
1097+
uses: alandefreitas/cpp-actions/create-changelog@v1.8.7
11031098
with:
11041099
thank-non-regular: ${{ startsWith(github.ref, 'refs/tags/') }}
11051100
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1118,7 +1113,7 @@ jobs:
11181113
node-version: 18
11191114

11201115
- name: Setup C++
1121-
uses: alandefreitas/cpp-actions/setup-cpp@v1.8.2
1116+
uses: alandefreitas/cpp-actions/setup-cpp@v1.8.7
11221117
id: setup-cpp
11231118
with:
11241119
compiler: clang

0 commit comments

Comments
 (0)