-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 1.27 KB
/
build_wheels.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
name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-20.04,
windows-2019,
macos-11
]
include:
- os: macOS-11
compiler_version: 13
- os: ubuntu-20.04
compiler_version: 10.2
- os: windows-2019
compiler_version: 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.11.2
- name: Build wheels
if: contains(matrix.os, 'windows')
shell: cmd
run: |
rmdir /S /Q C:\\Strawberry
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
python -m cibuildwheel --output-dir wheelhouse
env:
CONAN_COMPILER_VERSION: ${{ matrix.compiler_version }}
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
if: "!contains(matrix.os, 'windows')"
# - name: Build wheels
# uses: pypa/cibuildwheel@v2.11.2
env:
CONAN_COMPILER_VERSION: ${{ matrix.compiler_version }}