Skip to content

Commit

Permalink
Update build-test-cplusplus.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dodohua authored Oct 14, 2021
1 parent 2e8e75f commit e2e30a8
Showing 1 changed file with 2 additions and 49 deletions.
51 changes: 2 additions & 49 deletions .github/workflows/build-test-cplusplus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,54 +28,7 @@ jobs:
ctest -j 6 --output-on-failure
valgrind --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all ctest -j 6 --output-on-failure
asan:
name: ASAN ubuntu
runs-on: ubuntu-20.04
steps:

- name: Cancel previous runs on the same branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout code
uses: actions/checkout@v2

- name: cmake, RunTests with address- and undefined sanitizer on Ubuntu
run: |
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
swapon -s
mkdir build-asan
cd build-asan
cmake -DCMAKE_BUILD_TYPE=ASAN ../
cmake --build . -- -j 6
swapon -s
./RunTests
tsan:
name: TSAN ubuntu
runs-on: ubuntu-20.04
steps:
- name: Cancel previous runs on the same branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout code
uses: actions/checkout@v2

- name: cmake, RunTests with thread sanitizer on Ubuntu
run: |
mkdir build-tsan
cd build-tsan
cmake -DCMAKE_BUILD_TYPE=TSAN ../
cmake --build . -- -j 6
TSAN_OPTIONS="memory_limit_mb=6000" ./RunTests

windows:
name: Windows Latest
Expand All @@ -97,4 +50,4 @@ jobs:
cd build-win
cmake ..
cmake --build . --config Release -j 6
ctest -C Release -j 6
ctest -C Release -j 6

0 comments on commit e2e30a8

Please sign in to comment.