-
Notifications
You must be signed in to change notification settings - Fork 42
52 lines (44 loc) · 1.33 KB
/
build-and-test.yaml
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
name: build-and-test
run-name: ${{ github.actor }} is building "${{ github.ref_name }}"
on: [workflow_dispatch] # trigger manually
jobs:
build_native:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/[email protected]
with:
package-dir: nl-writer2/
- uses: actions/upload-artifact@v3
with:
path: ./nl-writer2/nlwpy/wheelhouse/*.whl
build_with_qemu:
#if: github.ref == 'refs/heads/release'
name: Build ${{ matrix.build }} wheels for ${{ matrix.arch }}
#needs: build_native
strategy:
matrix:
arch: [aarch64]
build: [cp37-*, cp38-*, cp39-*, cp310-*, cp311-*, cp312-*]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Build wheels
uses: pypa/[email protected]
with:
package-dir: nl-writer2/
env:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.build }}
- uses: actions/upload-artifact@v3
with:
path: ./nl-writer2/nlwpy/wheelhouse/*.whl