use conan2 #415
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: Ubuntu-GCC-Conan | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
except: [1, 0] | |
pic: [1, 0] | |
rtti: [1, 0] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup gcc | |
run: | | |
sudo update-alternatives \ | |
--install /usr/bin/gcc gcc /usr/bin/gcc-10 1000 \ | |
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \ | |
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-10 \ | |
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-10 | |
sudo update-alternatives \ | |
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000 | |
- name: install conan | |
run: sudo pip install conan | |
- name: install dependencies | |
run: | | |
conan profile detect | |
conan install . --build missing -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 | |
- name: make | |
run: URING=0 make -j2 EXCEPTIONS=${{matrix.except}} PIC=${{matrix.pic}} RTTI=${{matrix.rtti}} all | |
- name: test | |
run: URING=0 make -j2 EXCEPTIONS=${{matrix.except}} PIC=${{matrix.pic}} RTTI=${{matrix.rtti}} check |