-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.35 KB
/
conan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches:
- master
- testing/**
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
release:
types:
- published
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-18.04]
env:
CONAN_USERNAME: "conan"
CONAN_CHANNEL: "testing"
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }}
CONAN_PASSWORD: ${{ secrets.CONAN_PASSWORD }}
CONAN_STABLE_BRANCH_PATTERN: "v\\d+\\.\\d+\\.\\d+"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.7'
architecture: 'x64'
- name: Install CPT
run: |
pip install 'conan<1.21' 'conan_package_tools<0.31' --upgrade
- name: Build only
if: github.event_name == 'pull_request'
run: python build.py
- name: Build and publish
if: github.event_name == 'push'
env:
CONAN_UPLOAD: https://api.bintray.com/conan/anton-matosov/general
run: python build.py
- name: Build and publish stable
if: github.event_name == 'release'
env:
CONAN_CHANNEL: "stable"
CONAN_UPLOAD: https://api.bintray.com/conan/anton-matosov/general
run: python build.py