GH actions: conan

This commit is contained in:
Michele Caini
2019-09-24 12:55:39 +02:00
parent f5c231aa80
commit 1319fe2eb5
9 changed files with 50 additions and 78 deletions

View File

@@ -1,4 +1,4 @@
name: coveralls
name: coverage
on: [push, pull_request]
@@ -34,4 +34,4 @@ jobs:
run: |
pip install --upgrade wheel
pip install cpp-coveralls
coveralls --gcov gcov-7 --gcov-options '\-lp' -r . -b ./build -x cpp -x hpp -e ./deps -i ./src
coveralls --gcov gcov-7 --gcov-options '\-lp' -r . -b build -x cpp -x hpp -e deps -i src

33
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: deploy
on:
push:
tags:
- v*
jobs:
conan:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: docker://conanio/gcc8
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@master
with:
version: 3.6
- name: Install
run: |
chmod +x conan/ci/install.sh
./conan/ci/install.sh
- name: Deploy
env:
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }}
CONAN_PASSWORD: ${{ secrets.CONAN_PASSWORD }}
CONAN_UPLOAD: ${{ secrets.CONAN_UPLOAD }}
CONAN_GCC_VERSIONS: 8
run: |
chmod +x conan/ci/build.sh
./conan/ci/build.sh