-
Notifications
You must be signed in to change notification settings - Fork 1.6k
44 lines (37 loc) · 962 Bytes
/
wheel.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
name: Build wheels
on:
# on new tag
push:
tags:
- "*"
# manually trigger
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, macos-12]
steps:
- uses: actions/checkout@v2
- name: Set MacOS compiler
if: runner.os == 'macOS'
run: |
brew install gcc@13;
echo "CXX=gcc-13" >> $GITHUB_ENV
- name: Build wheels
uses: pypa/[email protected]
env:
# don't build for PyPython and windows 32-bit
CIBW_SKIP: pp* *win32*
# force compiler on macOS
CXX: ${{ env.CXX }}
CC: ${{ env.CXX }}
with:
package-dir: ./python
output-dir: ./python/wheelhouse
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: ./python/wheelhouse