Skip to content

Build procedure migrated to Conan 2.* #343

Build procedure migrated to Conan 2.*

Build procedure migrated to Conan 2.* #343

Workflow file for this run

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}} -DCONAN_HOST_PROFILE=${{github.workspace}}/build.props/conan.${{runner.os}}.profile
- 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