Updating build with Conan 2 #83
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: openE57 | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
build_type: [Release, Debug] | |
runtime_type: [MT, MTd, MD, MDd] | |
exclude: | |
- os: windows-latest | |
build_type: Release | |
runtime_type: MTd | |
- os: windows-latest | |
build_type: Release | |
runtime_type: MDd | |
- os: windows-latest | |
build_type: Debug | |
runtime_type: MT | |
- os: windows-latest | |
build_type: Debug | |
runtime_type: MD | |
runs-on: ${{ matrix.os }} | |
env: | |
CONAN_USER_HOME: "${{ github.workspace }}/release" | |
CONAN_USER_HOME_SHORT: "${{ github.workspace }}/release/short" | |
INSTALL_DIR: ${{ github.workspace }}/install/ | |
steps: | |
- name: Perform checkout | |
uses: actions/checkout@v2 | |
- name: Install Python environment | |
uses: actions/setup-python@v2 | |
- name: Install conan | |
run: | | |
pip install conan --upgrade | |
conan profile detect --force | |
- name: Windows Release build | |
if: matrix.build_type == 'Release' | |
run: | | |
conan create . -o openE57:with_tools=True --build=missing -s build_type=${{ matrix.build_type }} -s compiler.runtime=${{ matrix.runtime_type }} | |
- name: Windows Debug build | |
if: matrix.build_type == 'Debug' | |
run: | | |
conan create . --build=missing -s build_type=${{ matrix.build_type }} -s compiler.runtime=${{ matrix.runtime_type }} |