-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.35 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
46
47
48
49
50
51
52
53
54
55
name: Build Wheels
on:
push:
branches:
- main
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
jobs:
build_wheels:
name: Build wheels for ${{ matrix.py }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-2022, macos-13]
py: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*"]
steps:
- uses: actions/setup-python@v4
- uses: actions/checkout@v3
- name: Set up Visual Studio shell on Windows
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: set x64 cl.exe as CXX
if: matrix.os == 'reticula-build-windows-2022'
run: |
"CXX=$((Get-Command cl).Path)" >> "$env:GITHUB_ENV"
"CC=$((Get-Command cl).Path)" >> "$env:GITHUB_ENV"
- name: select Xcode version
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
sudo xcode-select -s "/Applications/Xcode_14.3.app"
- name: Update pip
run: python -m pip install -U pip
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5
- name: Build Wheels
env:
CIBW_BUILD: ${{ matrix.py }}
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl