RCPP-41 Add Conan support #1
Workflow file for this run
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: Test Conan integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build-static: | |
runs-on: ${{ matrix.os }} | |
name: "Static linkage" | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
build_type: [Debug, Release] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Install Conan | |
id: conan | |
uses: turtlebrowser/get-conan@main | |
- name: Conan version | |
run: echo "${{ steps.conan.outputs.version }}" | |
- name: Configure and build | |
working-directory: . | |
if: matrix.os == 'macos-latest' | |
run: | | |
conan create . -tf="tests" | |
- name: Open a tmate debug session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
timeout-minutes: 15 |