summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-10 01:08:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-10 01:08:19 +0200
commite4e7a2a17f03c2c5369086ccba4d33ac3461ca83 (patch)
tree3d0cb52462cb31062c888e11ec46b44343902307 /.github
parente87dfaf52d3f4e43fb1f6fea57fceaba71568487 (diff)
ci: try to enable -fsanitize=memory
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cmake.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 97d44da5..87e0d82c 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -21,7 +21,7 @@ jobs:
os: [ubuntu-22.04]
include:
- os: ubuntu-22.04
- cmake: /usr/bin/env CC=gcc-12 CXX=g++-12 cmake
+ cmake: /usr/bin/env CC=clang-16 CXX=clang++-16 cmake
#- os: macos-12
# cmake: /usr/bin/env CC="$(brew --prefix llvm@15)/bin/clang" CXX="$(brew --prefix llvm@15)/bin/clang++" cmake
#- os: windows-latest
@@ -39,10 +39,13 @@ jobs:
- name: Install Linux dependencies
run: |
+ wget -q https://apt.llvm.org/llvm.sh
+ chmod +x llvm.sh
+ sudo ./llvm.sh 16
sudo apt -q=2 update
- sudo apt install g++-12 gdb ninja-build
- sudo apt -q install libgl1-mesa-dri libgl-dev libglx-dev xorg-dev xvfb libopencv-dev
- sudo apt -q install libsdl2-dev
+ sudo apt install gdb ninja-build
+ sudo apt -q install libgl1-mesa-dri libgl-dev libglx-dev xorg-dev xvfb libsdl2-dev
+ # sudo apt -q install libopencv-dev
if: matrix.os == 'ubuntu-22.04'
- name: Install OSX dependencies
@@ -51,7 +54,7 @@ jobs:
if: matrix.os == 'macos-12'
- name: Configure
- run: ${{matrix.cmake}} -G "Ninja" -S ${{github.workspace}}/ -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DFLOORMAT_PRECOMPILED-HEADERS:BOOL=OFF
+ run: ${{matrix.cmake}} -G "Ninja" -S ${{github.workspace}}/ -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: ${{matrix.cmake}} --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install