Merge pull request #688 from laurynas-biveinis/c++20-requires #2
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: feature-matrix-build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
permissions: {} | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
env: | |
BUILD_TYPE: ${{matrix.BUILD_TYPE}} | |
STANDALONE: ${{matrix.STANDALONE}} | |
TESTS: ${{matrix.TESTS}} | |
BENCHMARKS: ${{matrix.BENCHMARKS}} | |
strategy: | |
fail-fast: false | |
matrix: | |
BUILD_TYPE: [Release, Debug] | |
STANDALONE: [ON, OFF] | |
TESTS: [ON, OFF] | |
BENCHMARKS: [ON, OFF] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: ${{ matrix.TESTS == 'ON' || matrix.BENCHMARKS == 'ON' }} | |
- name: Setup Boost | |
run: sudo apt-get install -y libboost-dev | |
- name: Create build environment | |
run: mkdir ${{github.workspace}}/build | |
- name: Configure CMake | |
# Use a bash shell so we can use the same syntax for environment | |
# variable access regardless of the host operating system | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake "$GITHUB_WORKSPACE" "-DSTANDALONE=$STANDALONE" \ | |
"-DCMAKE_BUILD_TYPE=$BUILD_TYPE" "-DTESTS=$TESTS" \ | |
"-DBENCHMARKS=$BENCHMARKS" | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
run: make -j3 -k |