graph namespace #1
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: run tests | |
env: | |
BUILD_DIR: out # root build directory | |
BENCHMARK_DIR: benchmarks # relative directory below BUILD_DIR | |
ARTIFACTS_DIR: benchmarks/artifacts # relative directory below BUILD_DIR | |
on: | |
push: | |
branches: | |
- master | |
- development | |
paths-ignore: | |
- 'README.md' | |
- 'docs/' | |
pull_request: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'README.md' | |
- 'docs/' | |
jobs: | |
ubuntu-22_04: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_mode: [Release] | |
compiler: | |
- pkg: g++-12 | |
exe: g++-12 | |
- pkg: g++-11 | |
exe: g++-11 | |
- pkg: g++-10 | |
exe: g++-10 | |
- pkg: clang-14 | |
exe: clang++-14 | |
- pkg: clang-13 | |
exe: clang++-13 | |
- pkg: clang-12 | |
exe: clang++-12 | |
- pkg: clang-11 | |
exe: clang++-11 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install compiler | |
run: | | |
sudo apt-get update | |
sudo apt-get install ${{ matrix.compiler.pkg }} -y | |
- name: Compile tests | |
env: | |
CXX: ${{ matrix.compiler.exe }} | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSIMPLE_UTILITY_BUILD_BENCHMARKS=Yes -B ${{ env.BUILD_DIR }} -S . | |
cmake --build ${{ env.BUILD_DIR }} -j4 | |
- name: Run tests | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.BENCHMARK_DIR }} -C ${{ matrix.build_mode }} -j4 | |
- name: Upload generated report artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{env.BUILD_DIR}}/${{env.ARTIFACTS_DIR}} | |
ubuntu-20_04: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_mode: [Release] | |
compiler: | |
- pkg: g++-11 | |
exe: g++-11 | |
- pkg: g++-10 | |
exe: g++-10 | |
- pkg: clang-12 | |
exe: clang++-12 | |
- pkg: clang-11 | |
exe: clang++-11 | |
- pkg: clang-10 | |
exe: clang++-10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install compiler | |
run: | | |
sudo apt-get update | |
sudo apt-get install ${{ matrix.compiler.pkg }} -y | |
- name: Compile tests | |
env: | |
CXX: ${{ matrix.compiler.exe }} | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -B ${{ env.BUILD_DIR }} -S . | |
cmake --build ${{ env.BUILD_DIR }} -j4 | |
- name: Run tests | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.TEST_DIR }} -C ${{ matrix.build_mode }} -j4 | |
- name: Upload generated report artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{env.BUILD_DIR}}/${{env.ARTIFACTS_DIR}} | |
windows_2022: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_mode: [Release] | |
toolset: [v142, v143, ClangCl] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Compile tests | |
run: | | |
cmake -G"Visual Studio 17 2022" -T${{ matrix.toolset }} -B${{ env.BUILD_DIR }} -Ax64 -S . | |
cmake --build ${{ env.BUILD_DIR }} --config ${{ matrix.build_mode }} -j4 | |
- name: Run tests | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.TEST_DIR }} -C${{ matrix.build_mode }} -j4 | |
- name: Upload generated report artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{env.BUILD_DIR}}/${{env.ARTIFACTS_DIR}} | |
windows_2019: | |
runs-on: windows-2019 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_mode: [Release] | |
toolset: [v142, ClangCl] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Compile tests | |
run: | | |
cmake -G"Visual Studio 16 2019" -T${{ matrix.toolset }} -B${{ env.BUILD_DIR }} -Ax64 -S . | |
cmake --build ${{ env.BUILD_DIR }} --config ${{ matrix.build_mode }} -j4 | |
- name: Run tests | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.TEST_DIR }} -C${{ matrix.build_mode }} -j4 | |
- name: Upload generated report artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{env.BUILD_DIR}}/${{env.ARTIFACTS_DIR}} | |
# macos: | |
# runs-on: macos-latest | |
# | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# build_mode: [Debug, Release] | |
# | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Compile tests | |
# run: | | |
# cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -B ${{ env.BUILD_DIR }} -S . | |
# cmake --build ${{ env.BUILD_DIR }} -j4 | |
# - name: Run tests | |
# env: | |
# CTEST_OUTPUT_ON_FAILURE: 1 | |
# run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.TEST_DIR }} -C${{ matrix.build_mode }} -j4 |