-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 964 Bytes
/
build.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
name: Build
on:
push:
branches:
- main
pull_request:
workflow_call:
workflow_dispatch:
jobs:
build:
name: Build
strategy:
matrix:
os: ["ubuntu", "windows", "macos"]
include:
- os: ubuntu
build-manylinux: auto
build-args: --release --sdist -o dist --find-interpreter
- os: windows
build-manylinux: false
build-args: --release -o dist --find-interpreter
- os: macos
build-manylinux: auto
build-args: --release -o dist --universal2 --find-interpreter
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
manylinux: ${{ matrix.build-manylinux }}
command: build
args: ${{ matrix.build-args }}
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist