Build procedure migrated to Conan 2.* #345
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: Build / Test | |
on: | |
push: | |
branches: [ '**', '!pre.*' ] | |
pull_request: | |
branches: [ master ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- os: ubuntu-22.04 | |
- os: windows-2019 | |
- os: macos-13 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Select Python 3.10 # otherwise turtlebrowser/[email protected] fails on macos-12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Conan | |
id: conan | |
uses: turtlebrowser/get-conan@main | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/_build -S ${{github.workspace}} -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=${{github.workspace}}/build.props/conan_provider.cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/_build --config ${{env.BUILD_TYPE}} --parallel 4 | |
- name: Test | |
working-directory: ${{github.workspace}}/_build | |
run: ctest -C ${{env.BUILD_TYPE}} -VV |