Commit 23d9cb4f authored by lukas's avatar lukas

support multiOS CI builds

parent 539423ae
name: build conan package name: build conan package
on: push on: [push, pull_request]
jobs: jobs:
build_conan: build_conan:
runs-on: ubuntu-latest strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
# install dependencies # install dependencies
- name: dependencies - name: install conan
run: | run: pip3 install conan
sudo apt-get update - name: setup conan
sudo apt-get install -yq python3 python3-pip python3-setuptools build-essential cmake make
sudo pip3 install conan
# build project
- name: build conan package
run: | run: |
conan profile new default --detect --force # Generates default profile detecting GCC and sets old ABI conan profile new default --detect --force # Generates default profile detecting GCC and sets old ABI
# new ABI version needs to be set on GCC >= 5
- name: set ABI
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
conan profile update settings.compiler.libcxx=libstdc++11 default # Sets libcxx to C++11 ABI conan profile update settings.compiler.libcxx=libstdc++11 default # Sets libcxx to C++11 ABI
- name: build conan package
run: |
conan create . conan create .
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment