65 lines (64 loc) · 2.13 KB
/
package.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
56
57
58
59
60
61
62
63
64
65
name: Test libzengithub package on main platforms
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [macOS-10.14, windows-2016, windows-2019, ubuntu-16.04, ubuntu-18.04]
include:
- os: ubuntu-16.04
python-arch: "x64"
python-version: "3.6.x"
install-headerfiles: true
gcc-version: "5"
- os: ubuntu-18.04
python-arch: "x64"
python-version: "3.6.x"
install-headerfiles: true
gcc-version: "7"
- os: macOS-10.14
python-arch: "x64"
python-version: "3.6.x"
install-headerfiles: false
- os: windows-2016
vs-version: 15
python-arch: "x86"
python-version: "2.7.x"
install-headerfiles: false
- os: windows-2019
vs-version: 16
python-arch: "x86"
python-version: "3.6.x"
install-headerfiles: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
version: ${{ matrix.python-version }}
architecture: ${{ matrix.python-arch }}
- name: Install C and C++ header files
run: |
sudo apt-get update && sudo apt-get install -y gcc-multilib
if: matrix.install-headerfiles
- name: Install conan && conan package tools
run: |
python -m pip install --upgrade pip
pip install conan
pip install conan_package_tools
- name: Generating conan user directory and building the solution
run: |
conan user
python build.py
env:
CONAN_REFERENCE: "ZenGitHub/1.0"
CONAN_USERNAME: "jonico"
CONAN_LOGIN_USERNAME: "jonico"
CONAN_CHANNEL: "stable"
CONAN_UPLOAD: "https://api.bintray.com/conan/conan-jonico/libzengithub"
CONAN_STABLE_BRANCH_PATTERN: "release/*"
CONAN_VISUAL_VERSIONS: ${{ matrix.vs-version }}
CONAN_APPLE_CLANG_VERSIONS: "11.0"
CONAN_GCC_VERSIONS: ${{ matrix.gcc-version }}