-
Notifications
You must be signed in to change notification settings - Fork 41
108 lines (95 loc) · 2.55 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
on:
push:
pull_request:
types: [ opened, synchronize, reopened ]
schedule:
- cron: '0 12 * * 1'
jobs:
sdist:
runs-on: ubuntu-20.04
steps:
- name: clone repo
uses: actions/checkout@v4
- name: build sdist
run: |
rm -rf dist/
python -m pip install build
python -m build --sdist
- name: upload sdist artifact
uses: actions/upload-artifact@v3
with:
path: dist
if-no-files-found: error
linux:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- spec: cp38-manylinux_x86_64
- spec: cp39-manylinux_x86_64
- spec: cp310-manylinux_x86_64
- spec: cp311-manylinux_x86_64
- spec: cp312-manylinux_x86_64
- spec: cp38-manylinux_aarch64
foreign_arch: true
test_args: '{project}/c'
- spec: cp39-manylinux_aarch64
foreign_arch: true
test_args: '{project}/c'
- spec: cp310-manylinux_aarch64
foreign_arch: true
test_args: '{project}/c'
- spec: cp311-manylinux_aarch64
foreign_arch: true
test_args: '{project}/c'
- spec: cp312-manylinux_aarch64
foreign_arch: true
test_args: '{project}/c'
steps:
- name: clone repo
uses: actions/checkout@v4
macos:
defaults:
run:
shell: ${{ matrix.run_wrapper || 'bash --noprofile --norc -eo pipefail {0}' }}
runs-on: ${{ matrix.runs_on || 'macos-11' }}
strategy:
fail-fast: false
matrix:
include:
# build for x86_64 under the default hosted macOS 10.x x86_64 runner
- spec: cp38-macosx_x86_64
steps:
- name: clone repo
# need to use v2 until we can upgrade the runners on our private Apple Silicon build infra to one that supports node20
uses: actions/checkout@v2
if: ${{ matrix.maybe_skip != 'skip' }}
- name: FAIL ON PURPOSE
run: |
/bin/false
if: matrix.spec == 'cp311-manylinux_aarch64'
windows:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
include:
- spec: cp311-win32
- spec: cp312-win32
steps:
- name: clone repo
uses: actions/checkout@v4
check:
if: always()
needs:
- sdist
- linux
- macos
- windows
runs-on: ubuntu-latest
steps:
- name: Verify all previous jobs succeeded (provides a single check to sample for gating purposes)
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}