Skip to content

Commit

Permalink
feat: test new runners
Browse files Browse the repository at this point in the history
  • Loading branch information
JoHaHu committed May 14, 2024
1 parent 2ab3ab5 commit f543ece
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ on:
- ws*
jobs:
check-format:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: find src -iname "*.h" -o -iname "*.cpp" | xargs clang-format-15 --dry-run --Werror
- run: find src -iname "*.h" -o -iname "*.cpp" | xargs clang-format-18 --dry-run --Werror

check-clang-tidy:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
compiler:
- gcc
# - clang
- clang
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: sudo apt-get install libxerces-c-dev
- run: cmake -DCMAKE_TOOLCHAIN_FILE=./toolchains/${{ matrix.compiler }}-test.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G 'Unix Makefiles' -S $(pwd) -B $(pwd)/build
- run: cd ./build && make VERBOSE=1
- run: clang-tidy-15 src/**/*.{cpp,h} -p ./build/compile_commands.json
- run: clang-tidy-18 src/**/*.{cpp,h} -p ./build/compile_commands.json
2 changes: 1 addition & 1 deletion .github/workflows/sanitizers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# - clang
build_type:
- Debug
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
- ws*
jobs:
run-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
compiler:
- gcc
# - clang
- clang
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion toolchains/clang-asan.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(CMAKE_CXX_COMPILER clang++-15)
set(CMAKE_CXX_COMPILER clang++-18)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_FLAGS_INIT -fsanitize=address)
2 changes: 1 addition & 1 deletion toolchains/clang-msan.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(CMAKE_CXX_COMPILER clang++-15)
set(CMAKE_CXX_COMPILER clang++-18)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_FLAGS_INIT -fsanitize=memory -fPIE -pie)
2 changes: 1 addition & 1 deletion toolchains/clang-test.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
set(CMAKE_CXX_COMPILER clang++-15)
set(CMAKE_CXX_COMPILER clang++-18)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion toolchains/clang-ubsan.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(CMAKE_CXX_COMPILER clang++-15)
set(CMAKE_CXX_COMPILER clang++-18)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_FLAGS_INIT -fsanitize=undefined)

0 comments on commit f543ece

Please sign in to comment.