21
21
runs-on : ${{ matrix.os }}
22
22
strategy :
23
23
matrix :
24
- os : [ubuntu-20.04 , windows-2019 , macos-latest]
24
+ os : [ubuntu-latest , windows-latest , macos-latest]
25
25
env :
26
26
CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
27
27
MACOSX_DEPLOYMENT_TARGET : " 10.15"
@@ -32,70 +32,69 @@ jobs:
32
32
33
33
- name : Set up QEMU
34
34
if : runner.os == 'Linux'
35
- uses : docker/setup-qemu-action@v2
35
+ uses : docker/setup-qemu-action@v3
36
36
with :
37
37
platforms : all
38
38
39
39
- name : Build wheels
40
- uses : pypa/cibuildwheel@v2.16 .2
40
+ uses : pypa/cibuildwheel@v2.19 .2
41
41
env :
42
42
# configure cibuildwheel to build native archs ('auto'), and some
43
43
# emulated ones
44
44
CIBW_ARCHS_LINUX : auto aarch64 ppc64le s390x
45
45
46
- - uses : actions/upload-artifact@v3
46
+ - uses : actions/upload-artifact@v4
47
47
with :
48
48
name : ${{matrix.os}}-wheels
49
49
path : ./wheelhouse/*.whl
50
50
51
51
build_sdist :
52
52
name : Build source dist
53
- runs-on : ubuntu-20.04
53
+ runs-on : ubuntu-latest
54
54
steps :
55
- - uses : actions/setup-python@v4
55
+ - uses : actions/setup-python@v5
56
56
with :
57
- python-version : ' 3.10'
58
- - uses : actions/checkout@v3
57
+ python-version : 3.10
58
+ - uses : actions/checkout@v4
59
59
with :
60
60
submodules : recursive
61
61
- name : Build sdist
62
62
run : |
63
63
python3 setup.py sdist
64
- - uses : actions/upload-artifact@v3
64
+ - uses : actions/upload-artifact@v4
65
65
with :
66
66
name : source-dist
67
67
path : ./dist/*.tar.gz
68
68
69
69
publish :
70
70
name : Pypi publish
71
71
if : ${{inputs.release == true}}
72
- # needs: ['build_wheels', 'build_sdist']
73
72
needs : ['build_wheels', 'build_sdist']
74
73
runs-on : ubuntu-latest
75
74
steps :
76
- - uses : actions/setup-python@v4
75
+ - uses : actions/setup-python@v5
77
76
with :
78
- python-version : 3.9
77
+ python-version : 3.10
79
78
- name : Install tools
80
79
run : |
81
80
pip install twine wheel
82
- - uses : actions/download-artifact@v3
81
+ - uses : actions/download-artifact@v4
83
82
with :
84
- name : ubuntu-20.04 -wheels
83
+ name : ubuntu-latest -wheels
85
84
path : artifacts/linux
86
- - uses : actions/download-artifact@v3
85
+ - uses : actions/download-artifact@v4
87
86
with :
88
- name : windows-2019 -wheels
87
+ name : windows-latest -wheels
89
88
path : artifacts/windows
90
- - uses : actions/download-artifact@v3
89
+ - uses : actions/download-artifact@v4
91
90
with :
92
91
name : macos-latest-wheels
93
92
path : artifacts/macos
94
- - uses : actions/download-artifact@v3
93
+ - uses : actions/download-artifact@v4
95
94
with :
96
95
name : source-dist
97
96
path : artifacts/sdist
98
- - name : unify wheel structure
97
+ - name : Unify wheel structure
99
98
run : |
100
99
mkdir dist
101
100
cp -R artifacts/windows/* dist
0 commit comments