🚸 Improve ease of use for building ClusterComplete (#261) #448
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🐧 • CI | |
on: | |
push: | |
branches: [ 'main' ] | |
paths: | |
- '**/*.hpp' | |
- '**/*.cpp' | |
- '**/*.cmake' | |
- '**/CMakeLists.txt' | |
- 'libs/**' | |
- '.github/workflows/ubuntu.yml' | |
pull_request: | |
branches: [ 'main' ] | |
paths: | |
- '**/*.hpp' | |
- '**/*.cpp' | |
- '**/*.cmake' | |
- '**/CMakeLists.txt' | |
- 'libs/**' | |
- '.github/workflows/ubuntu.yml' | |
merge_group: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_and_test: | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm ] | |
compiler: [ g++-11, g++-12, g++-13, clang++-14, clang++-15, clang++-16 ] | |
exclude: | |
- os: ubuntu-22.04 | |
compiler: g++-13 | |
- os: ubuntu-22.04 | |
compiler: clang++-16 | |
- os: ubuntu-24.04 | |
compiler: clang++-14 | |
- os: ubuntu-24.04-arm | |
compiler: g++-11 | |
- os: ubuntu-24.04-arm | |
compiler: g++-12 | |
- os: ubuntu-24.04-arm | |
compiler: g++-13 | |
- os: ubuntu-24.04-arm | |
compiler: clang++-14 | |
include: | |
- os: ubuntu-22.04 | |
compiler: g++-10 | |
- os: ubuntu-24.04 | |
compiler: g++-14 | |
- os: ubuntu-24.04 | |
compiler: clang++-17 | |
- os: ubuntu-24.04 | |
compiler: clang++-18 | |
- os: ubuntu-24.04-arm | |
compiler: clang++-17 | |
- os: ubuntu-24.04-arm | |
compiler: clang++-18 | |
name: 🐧 ${{matrix.os}} with ${{matrix.compiler}} | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Install libraries and the respective compiler | |
run: sudo apt-get update && sudo apt-get install -yq libboost-all-dev libtbb-dev ${{matrix.compiler}} | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup ccache | |
# ccache is not supported on ARM yet | |
if: matrix.os != 'ubuntu-24.04-arm' | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
key: "${{matrix.os}}-${{matrix.compiler}}-Release" | |
variant: ccache | |
save: true | |
max-size: 10G | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build_release | |
- name: Configure CMake | |
working-directory: ${{github.workspace}}/build_release | |
run: > | |
cmake ${{github.workspace}} | |
-DCMAKE_CXX_COMPILER=${{matrix.compiler}} | |
-DCMAKE_BUILD_TYPE=Release | |
-DFICTION_ENABLE_UNITY_BUILD=ON | |
-DFICTION_ENABLE_PCH=ON | |
-DFICTION_CLI=OFF | |
-DFICTION_TEST=OFF | |
-DFICTION_EXPERIMENTS=OFF | |
-DFICTION_Z3=OFF | |
-DFICTION_ALGLIB=ON | |
-DFICTION_PROGRESS_BARS=OFF | |
-DFICTION_WARNINGS_AS_ERRORS=OFF | |
-DMOCKTURTLE_EXAMPLES=OFF | |
-DMNT_SIQAD_PLUGINS_TEST=ON | |
- name: Build | |
working-directory: ${{github.workspace}}/build_release | |
run: cmake --build . --config Release -j4 | |
- name: Test | |
working-directory: ${{github.workspace}}/build_release | |
run: ctest -C Release --verbose --output-on-failure --repeat until-pass:3 --parallel 4 |