-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (47 loc) · 1.08 KB
/
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
45
46
47
name: Build
on:
- push
- pull_request
jobs:
build:
strategy:
matrix:
platform:
- Linux
- macOS
- Windows
include:
- platform: Linux
os: ubuntu-latest
- platform: macOS
os: macos-latest
- platform: Windows
os: windows-latest
name: Build on ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Build
uses: pypa/cibuildwheel@v2.21
env:
CIBW_SKIP: pp* *musllinux*
CIBW_ARCHS_MACOS: universal2
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.platform }}
path: wheelhouse
merge:
name: Merge artifacts
needs: build
runs-on: ubuntu-latest
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@v4
with:
name: dist
delete-merged: true