@@ -3,7 +3,26 @@ name: main
3
3
on : [push, pull_request, workflow_dispatch]
4
4
5
5
jobs :
6
- build :
6
+ sdist :
7
+ name : Make source dist
8
+ runs-on : ubuntu-latest
9
+ permissions :
10
+ contents : read
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-python@v5
14
+ with :
15
+ python-version : ' 3.10'
16
+ - name : Create source dist
17
+ run : python setup.py sdist
18
+ - name : Upload source dist
19
+ uses : actions/upload-artifact@v4
20
+ with :
21
+ name : sdist
22
+ path : dist
23
+ if-no-files-found : error
24
+
25
+ wheels :
7
26
name : ${{ matrix.pyver }} on ${{ matrix.os }}
8
27
runs-on : ${{ matrix.os }}
9
28
permissions :
21
40
- uses : actions/setup-python@v5
22
41
with :
23
42
python-version : ' 3.10'
24
- - name : Create source dist
25
- run : python setup.py sdist
26
- - name : Upload source dist
27
- uses : actions/upload-artifact@v4
28
- with :
29
- name : dist-${{ matrix.version }}-${{ matrix.pyver }}-${{ matrix.os }}
30
- path : dist
31
- if-no-files-found : error
32
- - name : Build and test wheels
43
+ - name : Build and test wheel
33
44
uses : pypa/cibuildwheel@v2.17
34
45
env :
35
46
CIBW_BUILD : ${{ matrix.pyver }}-*
@@ -48,10 +59,10 @@ jobs:
48
59
CIBW_TEST_SKIP : " cp38-macosx_arm64"
49
60
- name : Inventory
50
61
run : ls wheelhouse
51
- - name : Upload wheels
62
+ - name : Upload wheel
52
63
uses : actions/upload-artifact@v4
53
64
with :
54
- name : wheels -${{ matrix.version }}-${{ matrix.pyver }}-${{ matrix.os }}
65
+ name : wheel -${{ matrix.version }}-${{ matrix.pyver }}-${{ matrix.os }}
55
66
path : wheelhouse/
56
67
if-no-files-found : error
57
68
60
71
runs-on : ubuntu-latest
61
72
permissions :
62
73
contents : read
63
- needs : build
74
+ needs : [sdist, wheels]
64
75
if : >
65
76
github.event_name == 'push'
66
77
&& startsWith(github.ref, 'refs/tags')
@@ -69,12 +80,12 @@ jobs:
69
80
- name : Download source packages
70
81
uses : actions/download-artifact@v4
71
82
with :
72
- pattern : dist-*
83
+ name : sdist
73
84
path : dist
74
85
- name : Download wheels
75
86
uses : actions/download-artifact@v4
76
87
with :
77
- pattern : wheels -*
88
+ pattern : wheel -*
78
89
path : dist
79
90
merge-multiple : true
80
91
- name : List dir content
0 commit comments