|
13 | 13 | pull_request: |
14 | 14 | release: |
15 | 15 | types: [published, created, edited] |
| 16 | + |
| 17 | +env: |
| 18 | + UBSAN_OPTIONS: print_stacktrace=1 |
| 19 | + |
16 | 20 | jobs: |
17 | 21 | ubuntu-jammy: |
18 | 22 | runs-on: ubuntu-22.04 |
|
60 | 64 | run: ../../../b2 print_config_info toolset=$TOOLSET |
61 | 65 | working-directory: ../boost-root/libs/config/test |
62 | 66 | - name: Test |
63 | | - run: ../../../b2 toolset=$TOOLSET |
| 67 | + run: ../../../b2 toolset=$TOOLSET variant=debug,release ${{ startsWith(matrix.compiler, 'g++-13') && 'address-sanitizer=norecover undefined-sanitizer=norecover' || '' }} |
64 | 68 | working-directory: ../boost-root/libs/regex/test |
65 | 69 | ubuntu-jammy-standalone: |
66 | 70 | runs-on: ubuntu-22.04 |
@@ -170,6 +174,54 @@ jobs: |
170 | 174 | - name: Test |
171 | 175 | run: CXX=clang++-18 LIBRARIES="-licuuc -licudata -licui18n" ./test_clang.sh |
172 | 176 | working-directory: ../boost-root/libs/regex/test/module |
| 177 | + ubuntu-noble-clang: |
| 178 | + runs-on: ubuntu-24.04 |
| 179 | + strategy: |
| 180 | + fail-fast: false |
| 181 | + matrix: |
| 182 | + compiler: [ clang++-16, clang++-17, clang++-18 ] |
| 183 | + standard: [ c++11, c++14, c++17, c++20 ] |
| 184 | + steps: |
| 185 | + - uses: actions/checkout@v2 |
| 186 | + with: |
| 187 | + fetch-depth: '0' |
| 188 | + - uses: mstachniuk/ci-skip@v1 |
| 189 | + with: |
| 190 | + commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]' |
| 191 | + commit-filter-separator: ';' |
| 192 | + fail-fast: true |
| 193 | + - name: Set TOOLSET |
| 194 | + run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV |
| 195 | + - name: Add repository |
| 196 | + run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" |
| 197 | + - name: Install packages |
| 198 | + run: sudo apt install clang-16 clang-17 clang-18 |
| 199 | + - name: Checkout main boost |
| 200 | + run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root |
| 201 | + - name: Update tools/boostdep |
| 202 | + run: git submodule update --init tools/boostdep |
| 203 | + working-directory: ../boost-root |
| 204 | + - name: Copy files |
| 205 | + run: cp -r $GITHUB_WORKSPACE/* libs/regex |
| 206 | + working-directory: ../boost-root |
| 207 | + - name: Install deps |
| 208 | + run: python tools/boostdep/depinst/depinst.py -I example -g "--jobs 3" regex |
| 209 | + working-directory: ../boost-root |
| 210 | + - name: Bootstrap |
| 211 | + run: ./bootstrap.sh |
| 212 | + working-directory: ../boost-root |
| 213 | + - name: Generate headers |
| 214 | + run: ./b2 headers |
| 215 | + working-directory: ../boost-root |
| 216 | + - name: Generate user config |
| 217 | + run: 'echo "using $TOOLSET : : ${{ matrix.compiler }} : <cxxflags>-std=${{ matrix.standard }} ;" > ~/user-config.jam' |
| 218 | + working-directory: ../boost-root |
| 219 | + - name: Config info |
| 220 | + run: ../../../b2 print_config_info toolset=$TOOLSET |
| 221 | + working-directory: ../boost-root/libs/config/test |
| 222 | + - name: Test |
| 223 | + run: ../../../b2 toolset=$TOOLSET define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER variant=debug,release ${{ startsWith(matrix.compiler, 'clang++-18') && 'address-sanitizer=norecover undefined-sanitizer=norecover' || '' }} |
| 224 | + working-directory: ../boost-root/libs/regex/test |
173 | 225 | macos: |
174 | 226 | runs-on: macos-latest |
175 | 227 | strategy: |
|
0 commit comments