-
Notifications
You must be signed in to change notification settings - Fork 14
64 lines (56 loc) · 1.69 KB
/
main_push.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
name: main push
on:
push:
branches:
- main
jobs:
check-platform-builds:
name: ${{ matrix.platform }}
runs-on: ${{ matrix.image }}
strategy:
fail-fast: true
matrix:
include:
- image: ubuntu-latest
platform: linux
- image: macos-13
platform: macos-intel
- image: macos-14
platform: macos-arm
- image: windows-latest
platform: windows
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache Conan
id: cache-conan
uses: actions/cache@v3
if: matrix.platform == 'windows'
with:
path: |
conan_build
conan_data
key: conan-${{ matrix.image }}-${{ hashFiles('conanfile.txt') }}
- name: Configure Python
uses: actions/setup-python@v5
if: matrix.platform == 'windows' && steps.cache-conan.outputs.cache-hit != 'true'
with:
python-version: '3.x'
- name: Install Conan
if: matrix.platform == 'windows' && steps.cache-conan.outputs.cache-hit != 'true'
run: |
pip install pip --upgrade
pip install conan<2.0.0
conan profile new default --detect
conan profile update "settings.compiler=Visual Studio" default
conan profile update "settings.compiler.version=17" default
conan config set "storage.path=$env:GITHUB_WORKSPACE/conan_data"
conan install --build=openssl --install-folder conan_build .
- uses: pypa/[email protected]
env:
MACOSX_DEPLOYMENT_TARGET: 10.14
CIBW_BUILD: '*cp39*'
- name: Verify clean directory
run: git diff --exit-code
shell: bash