-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (46 loc) · 1.16 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on:
workflow_dispatch:
release:
types:
- published
jobs:
build_wheels:
name: Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
steps:
- uses: actions/checkout@v3
with:
submodules: true
# - name: install libomp on macOS
# shell: bash
# if: runner.os == 'macOS'
# run: |
# HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew reinstall --build-from-source --formula ./.github/workflows/libomp.rb
- name: Build wheels
uses: pypa/[email protected]
- name: Show files
run: ls -lh wheelhouse
shell: bash
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
name: Install Python
- name: Build sdist
run: |
python -m pip install build
python -m build -s
- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz