Skip to content

Commit 0d9707d

Browse files
committed
Update OS for clang-17 and add clang-18
1 parent 993842f commit 0d9707d

File tree

1 file changed

+62
-2
lines changed

1 file changed

+62
-2
lines changed

.github/workflows/ci.yml

+62-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,72 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22+
ubuntu-noble:
23+
runs-on: ubuntu-24.04
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
compiler: [ g++-13, g++-14, clang++-17, clang++-18 ]
28+
standard: [ c++20, c++23 ]
29+
suite: [ github_ci_block_1, github_ci_block_2 ]
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
fetch-depth: '0'
34+
- name: Set TOOLSET
35+
run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV
36+
- name: Add repository
37+
continue-on-error: true
38+
id: addrepo
39+
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
40+
- name: Retry Add Repo
41+
continue-on-error: true
42+
id: retry1
43+
if: steps.addrepo.outcome=='failure'
44+
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
45+
- name: Retry Add Repo 2
46+
continue-on-error: true
47+
id: retry2
48+
if: steps.retry1.outcome=='failure'
49+
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
50+
- name: Install packages
51+
run: sudo apt-get install -y g++-13 g++-14 clang-17 clang-18 libgmp-dev libmpfr-dev libfftw3-dev
52+
- name: Checkout main boost
53+
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
54+
- name: Update tools/boostdep
55+
run: git submodule update --init tools/boostdep
56+
working-directory: ../boost-root
57+
- name: Copy files
58+
run: cp -r $GITHUB_WORKSPACE/* libs/math
59+
working-directory: ../boost-root
60+
- name: Install deps
61+
run: python tools/boostdep/depinst/depinst.py math -I example -I tools
62+
working-directory: ../boost-root
63+
- name: Bootstrap
64+
run: ./bootstrap.sh
65+
working-directory: ../boost-root
66+
- name: Generate headers
67+
run: ./b2 headers
68+
working-directory: ../boost-root
69+
- name: Generate user config
70+
run: 'echo "using $TOOLSET : : ${{ matrix.compiler }} : <cxxflags>-std=${{ matrix.standard }} ;" > ~/user-config.jam'
71+
working-directory: ../boost-root
72+
- name: Config info install
73+
run: ../../../b2 config_info_travis_install toolset=$TOOLSET
74+
working-directory: ../boost-root/libs/config/test
75+
- name: Config info
76+
run: ./config_info_travis
77+
working-directory: ../boost-root/libs/config/test
78+
- name: Test
79+
run: ../../../b2 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER define=BOOST_MATH_RUN_MP_TESTS
80+
working-directory: ../boost-root/libs/math/test
81+
2282
ubuntu-jammy:
2383
runs-on: ubuntu-22.04
2484
strategy:
2585
fail-fast: false
2686
matrix:
27-
compiler: [ g++-12, clang++-14, clang++-15, clang++-16, clang++-17 ]
87+
compiler: [ g++-12, clang++-14, clang++-15, clang++-16 ]
2888
standard: [ c++14, c++17 ]
2989
suite: [ github_ci_block_1, github_ci_block_2 ]
3090
steps:
@@ -48,7 +108,7 @@ jobs:
48108
if: steps.retry1.outcome=='failure'
49109
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
50110
- name: Install packages
51-
run: sudo apt-get install -y g++-12 clang-14 clang-15 clang-16 clang-17 libgmp-dev libmpfr-dev libfftw3-dev
111+
run: sudo apt-get install -y g++-12 clang-14 clang-15 clang-16 libgmp-dev libmpfr-dev libfftw3-dev
52112
- name: Checkout main boost
53113
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
54114
- name: Update tools/boostdep

0 commit comments

Comments
 (0)