15
15
jobs :
16
16
build_sdist :
17
17
name : sdist
18
- runs-on : ubuntu-latest
18
+ runs-on : ubuntu-24.04
19
19
steps :
20
20
- uses : actions/checkout@v4
21
21
with :
@@ -30,11 +30,12 @@ jobs:
30
30
run : |
31
31
python -m pip install --upgrade pip
32
32
pip install build
33
- python -m build --sdist
33
+ python -m build --sdist --outdir dist-sdist .
34
34
35
- - uses : actions/upload-artifact@v3
35
+ - uses : actions/upload-artifact@v4
36
36
with :
37
- path : dist/*.tar.gz
37
+ name : dist-sdist
38
+ path : dist-sdist/*.tar.gz
38
39
39
40
build_wheels :
40
41
name : wheels for ${{ matrix.cfg.os }} / ${{ matrix.cfg.arch }}
43
44
fail-fast : false
44
45
matrix :
45
46
cfg :
46
- - { os: ubuntu-latest , arch: x86_64 }
47
+ - { os: ubuntu-24.04 , arch: x86_64 }
47
48
- { os: macos-13, arch: x86_64 }
49
+ - { os: macos-14, arch: arm64 }
48
50
49
51
steps :
50
52
- uses : actions/checkout@v4
@@ -56,20 +58,22 @@ jobs:
56
58
env :
57
59
CIBW_ARCHS : ${{ matrix.cfg.arch }}
58
60
with :
59
- output-dir : dist
61
+ output-dir : dist-wheel-${{ matrix.cfg.os }}-${{ matrix.cfg.arch }}
60
62
61
- - uses : actions/upload-artifact@v3
63
+ - uses : actions/upload-artifact@v4
62
64
with :
63
- path : ./dist/*.whl
65
+ name : dist-wheel-${{ matrix.cfg.os }}-${{ matrix.cfg.arch }}
66
+ path : ./dist-wheel-${{ matrix.cfg.os }}-${{ matrix.cfg.arch }}/*.whl
64
67
65
68
upload_to_pypi :
66
69
needs : [build_wheels, build_sdist]
67
- runs-on : ubuntu-latest
70
+ runs-on : ubuntu-24.04
68
71
69
72
steps :
70
- - uses : actions/download-artifact@v3
73
+ - uses : actions/download-artifact@v4
71
74
with :
72
- name : artifact
75
+ pattern : dist-*
76
+ merge-multiple : true
73
77
path : dist
74
78
75
79
- name : Publish to Test PyPI
0 commit comments