build: GitHub CI updated

This commit is contained in:
Mateusz Pusz
2020-11-04 21:57:05 +01:00
parent 8ccee4d13d
commit a0f85cadc9

View File

@@ -26,7 +26,7 @@ on: [push, pull_request]
jobs: jobs:
conan: conan:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -39,13 +39,9 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.8' python-version: '3.8'
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install Conan - name: Install Conan
run: | run: |
pip install -U conan_package_tools pip install -U conan_package_tools
conan config init
- name: Run - name: Run
env: env:
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }} CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }}
@@ -59,28 +55,29 @@ jobs:
docs: docs:
needs: conan needs: conan
name: Documentation name: Documentation
runs-on: ubuntu-latest runs-on: ubuntu-20.04
env: env:
CC: gcc-10 CC: gcc-10
CXX: g++-10 CXX: g++-10
steps: steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt install -y gcc-10 g++-10
pip install -Ur docs/requirements.txt pip install -Ur docs/requirements.txt
- name: Install Conan - name: Install Conan
run: | run: |
pip install -U conan pip install -U conan
conan config init conan config init
- name: Generate
- name: Build
run: run:
mkdir build && cd build mkdir build && cd build
conan install .. -e CONAN_RUN_TESTS=True conan install .. -e CONAN_RUN_TESTS=True
cmake .. cmake ..
cmake --build . --target sphinx cmake --build . --target sphinx
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with: