ci: bump actions version to 3 #51
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: linux | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
cxx: [g++-10] | |
build_type: [Debug] | |
std: [20] | |
os: [ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install coverage | |
run: | | |
pip3 install --upgrade pip | |
pip3 install coverage | |
- name: Install and configure Conan | |
run: | | |
pip3 install conan==1.62.0 | |
conan profile new default --detect | |
conan profile update settings.compiler.libcxx=libstdc++11 default | |
conan profile update conf.tools.system.package_manager:mode=install default | |
conan profile show default | |
sudo apt-get update | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{runner.workspace}}/build | |
- name: Install third-party packages | |
shell: bash | |
working-directory: ${{runner.workspace}}/build | |
run: conan install $GITHUB_WORKSPACE | |
- name: CMake Configure | |
working-directory: ${{runner.workspace}}/build | |
env: | |
CXX: ${{matrix.cxx}} | |
# CXXFLAGS: ${{matrix.cxxflags}} | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | |
-DCMAKE_MODULE_PATH=$PWD -DENABLE_TESTS=True \ | |
-DENABLE_COVERAGE=True $GITHUB_WORKSPACE | |
- name: CMake Build | |
working-directory: ${{runner.workspace}}/build | |
run: cmake --build . --config ${{matrix.build_type}} | |
- name: Test | |
working-directory: ${{runner.workspace}}/build/ | |
run: ctest -V -C ${{matrix.build_type}} --output-on-failure | |
# - name: Coverage | |
# shell: bash | |
# env: | |
# CODECOV_TOKEN: "7526d1fa-caa6-41f8-9ed0-41982d2504d4" | |
# working-directory: ${{runner.workspace}}/build | |
# run: bash <(curl -s https://codecov.io/bash) |