Skip to content

Commit f530729

Browse files
authored
ci: test on clang/arm64 (#975)
* ci: test on clang/arm64 * CTEST_OUTPUT_ON_FAILURE * test fail-fast * fix * exclude msan * simplify
1 parent 2f689a3 commit f530729

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/test-linux.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
env CTEST_OUTPUT_ON_FAILURE=1 make test
7777
7878
clang-tests:
79-
name: clang ${{ matrix.build_type }} ${{ matrix.compile_opt }}
80-
runs-on: ubuntu-latest
79+
name: clang ${{ matrix.build_type }} ${{ matrix.runs_on }} ${{ matrix.compile_opt }}
80+
runs-on: ${{ matrix.runs_on }}
8181
env:
8282
CC: clang
8383

@@ -87,6 +87,11 @@ jobs:
8787
# https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
8888
compile_opt: ["", "-fsanitize=undefined,float-divide-by-zero -fno-sanitize-recover=undefined,float-divide-by-zero", "-fsanitize=memory -fno-sanitize-recover=memory", "-fsanitize=address -fno-sanitize-recover=address"]
8989
build_type: ["Debug", "Release"]
90+
runs_on: ["ubuntu-latest", "ubuntu-22.04-arm"]
91+
exclude:
92+
# TODO: Include msan on arm
93+
- runs_on: ubuntu-22.04-arm
94+
compile_opt: "-fsanitize=memory -fno-sanitize-recover=memory"
9095

9196
steps:
9297
- uses: actions/checkout@v4
@@ -119,7 +124,7 @@ jobs:
119124
- name: Tests
120125
working-directory: build
121126
run: |
122-
make test
127+
make CTEST_OUTPUT_ON_FAILURE=1 test
123128
sudo make install
124129
125130
# Note the packages aren't used to test the examples below

0 commit comments

Comments
 (0)