Skip to content

Remove cmake version check from setup.py #1460

Remove cmake version check from setup.py

Remove cmake version check from setup.py #1460

name: Build and Test C++
on:
push:
branches:
- main
release:
types: [published]
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}--${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
cancel-in-progress: true
jobs:
valgrind:
name: valgrind ubuntu
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: cmake, RunTests, and valgrind on ubuntu-20.04
run: |
sudo apt update
sudo apt-get install valgrind -y
mkdir build
cd build
cmake ../
cmake --build . -- -j 6
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-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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
mac:
name: MacOS
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: cmake, RunTests on Mac
run: |
mkdir build
cd build
cmake ..
cmake --build . --config Release -j 6
./RunTests
windows:
name: Windows Latest
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: cmake, RunTests with Windows
run: |
mkdir build-win
cd build-win
cmake ..
cmake --build . --config Release -j 6
ctest -C Release -j 6