Skip to content

Commit

Permalink
ci.yml: override Node20 in old containers
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtum committed Dec 30, 2024
1 parent fe672c6 commit 5e692ea
Showing 1 changed file with 26 additions and 31 deletions.
57 changes: 26 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,6 @@ jobs:
name: "Apple-Clang (macOS 13)"
build-type: "Release"

- compiler: "apple-clang"
version: "*"
cxx: "clang++"
cc: "clang"
runs-on: "macos-12"
b2-toolset: "clang"
name: "Apple-Clang (macOS 12)"
build-type: "Release"

# Linux compilers
#

Expand Down Expand Up @@ -364,8 +355,7 @@ jobs:
latest-cxxstd: "20"
cxx: "g++-13"
cc: "gcc-13"
runs-on: "ubuntu-latest"
container: "ubuntu:23.04"
runs-on: "ubuntu-24.04"
b2-toolset: "gcc"
name: "GCC 13: C++17-20"
build-type: "Release"
Expand All @@ -377,8 +367,7 @@ jobs:
latest-cxxstd: "20"
cxx: "g++-13"
cc: "gcc-13"
runs-on: "ubuntu-latest"
container: "ubuntu:23.04"
runs-on: "ubuntu-24.04"
b2-toolset: "gcc"
is-latest: true
name: "GCC 13: C++17-20 (coverage)"
Expand Down Expand Up @@ -608,8 +597,7 @@ jobs:
latest-cxxstd: "20"
cxx: "clang++-17"
cc: "clang-17"
runs-on: "ubuntu-latest"
container: "ubuntu:23.10"
runs-on: "ubuntu-24.04"
b2-toolset: "clang"
name: "Clang 17: C++17-20"
build-type: "Release"
Expand All @@ -621,8 +609,7 @@ jobs:
latest-cxxstd: "20"
cxx: "clang++-16"
cc: "clang-16"
runs-on: "ubuntu-latest"
container: "ubuntu:23.04"
runs-on: "ubuntu-24.04"
b2-toolset: "clang"
name: "Clang 16: C++17-20"
build-type: "Release"
Expand Down Expand Up @@ -803,12 +790,20 @@ jobs:
container:
image: ${{ matrix.container }}
options: --privileged
volumes:
- /node20217:/node20217:rw,rshared
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
timeout-minutes: 120

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

- name: Setup C++
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
id: setup-cpp
with:
compiler: ${{ matrix.compiler }}
Expand All @@ -832,7 +827,7 @@ jobs:
trace-commands: true

- name: Install packages
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
id: package-install
with:
apt-get-add-architecture: 'i386'
Expand All @@ -841,7 +836,7 @@ jobs:
build-essential
- name: Clone Boost
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
id: boost-clone
with:
branch: ${{ (github.ref_name == 'master' && github.ref_name) || 'develop' }}
Expand All @@ -850,7 +845,7 @@ jobs:
scan-modules-ignore: http_proto

- name: Install zlib (Windows)
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
if: ${{ startsWith(matrix.runs-on, 'windows') && !matrix.skip-zlib }}
id: zlib-install
with:
Expand Down Expand Up @@ -918,7 +913,7 @@ jobs:
python3 tools/boostdep/depinst/depinst.py $module
- name: Boost B2 Workflow
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
if: ${{ !matrix.coverage && !matrix.time-trace }}
env:
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' }}
Expand All @@ -940,7 +935,7 @@ jobs:
extra-args: ${{ (matrix.valgrind && 'testing.launcher=valgrind' || '' )}}

- name: Boost CMake Workflow
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
if: ${{ matrix.coverage || matrix.time-trace || matrix.build-cmake || matrix.is-earliest }}
with:
source-dir: boost-root
Expand Down Expand Up @@ -977,7 +972,7 @@ jobs:
echo "LD_LIBRARY_PATH=$GITHUB_WORKSPACE/.local/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
- name: Find Package Integration Workflow
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
if: ${{ matrix.build-cmake || matrix.is-earliest }}
with:
source-dir: boost-root/libs/${{ steps.patch.outputs.module }}/test/cmake_test
Expand All @@ -1001,7 +996,7 @@ jobs:
toolchain: ${{ (startsWith(matrix.runs-on, 'windows') && steps.patch-user-config.outputs.toolchain) || '' }}

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

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

- name: FlameGraph
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
if: matrix.time-trace
with:
source-dir: boost-root/libs/http_proto
Expand Down Expand Up @@ -1099,7 +1094,7 @@ jobs:
fetch-depth: 100

- name: Changelog
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
with:
thank-non-regular: ${{ startsWith(github.ref, 'refs/tags/') }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -1118,7 +1113,7 @@ jobs:
node-version: 18

- name: Setup C++
uses: alandefreitas/cpp-actions/[email protected].2
uses: alandefreitas/cpp-actions/[email protected].7
id: setup-cpp
with:
compiler: clang
Expand Down

0 comments on commit 5e692ea

Please sign in to comment.