|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2026 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 |
| 12 | +# ******************************************************************************* |
| 13 | +name: Bazel Sanitizers (Linux) |
| 14 | +permissions: |
| 15 | + contents: read |
| 16 | + actions: write |
| 17 | +on: |
| 18 | + pull_request: |
| 19 | + types: [opened, reopened, synchronize] |
| 20 | + push: |
| 21 | + branches: |
| 22 | + - main |
| 23 | + merge_group: |
| 24 | + types: [checks_requested] |
| 25 | + workflow_call: |
| 26 | +jobs: |
| 27 | + linux-sanitizers: |
| 28 | + runs-on: ubuntu-latest |
| 29 | + steps: |
| 30 | + - name: Checkout Repository |
| 31 | + uses: actions/checkout@v6 |
| 32 | + - name: Setup Bazel |
| 33 | + uses: bazel-contrib/setup-bazel@0.18.0 |
| 34 | + with: |
| 35 | + bazelisk-cache: true |
| 36 | + disk-cache: ${{ github.job }} |
| 37 | + repository-cache: true |
| 38 | + cache-save: ${{ github.event_name == 'push' }} |
| 39 | + - name: Bazel Test with Sanitizers |
| 40 | + run: | |
| 41 | + bazel test --config bl-x86_64-linux --config=asan_ubsan_lsan --build_tests_only -- //score/... \ |
| 42 | + -//score/language/safecpp/aborts_upon_exception:abortsuponexception_toolchain_test \ |
| 43 | + -//score/containers:dynamic_array_test \ |
| 44 | + -//score/containers:non_relocatable_vector_emplace_back_test \ |
| 45 | + -//score/containers:non_relocatable_vector_special_member_funcs_test \ |
| 46 | + -//score/containers:non_relocatable_vector_test |
0 commit comments