Merge pull request #16 from alexhenrie/master #13
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: ci | |
on: [push, pull_request] | |
jobs: | |
build_linux: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
build_config: | |
- { compiler: gcc, version: 10 } | |
- { compiler: gcc, version: 9 } | |
- { compiler: gcc, version: 8 } | |
- { compiler: gcc, version: 7 } | |
- { compiler: clang, version: 11 } | |
- { compiler: clang, version: 10 } | |
- { compiler: clang, version: 9 } | |
- { compiler: clang, version: 8 } | |
name: "${{ matrix.build_config.compiler }}-${{ matrix.build_config.version }}" | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup | |
run: | | |
pip install -U conan conan_package_tools | |
- name: Build | |
env: | |
CONAN_ARCHS: x86_64 | |
CONAN_BUILD_TYPES: Release | |
CONAN_BUILD_POLICY: missing | |
run: | | |
COMPILER_ENV=$(echo "${{ matrix.build_config.compiler }}" | tr '[:lower:]' '[:upper:]') | |
export CONAN_${COMPILER_ENV}_VERSIONS=${{ matrix.build_config.version }} | |
export CONAN_DOCKER_IMAGE=conanio/${{ matrix.build_config.compiler }}${{ matrix.build_config.version }} | |
python build.py |