Skip to content

Commit d8aa945

Browse files
committed
[ci] fix: create distinct artifact for each GH actions workflow step and set compression level to 0
[ci] Update GH actions setup-qemu-action to v3 [ci] Update GH actions pypa/gh-action-pypi-publish to release/v1 Signed-off-by: Christopher Arndt <[email protected]>
1 parent 7a7395d commit d8aa945

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

.github/workflows/pr_to_master.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- name: Upload sdist
3131
uses: actions/upload-artifact@v4
3232
with:
33+
name: sdist
3334
path: dist/*.tar.gz
35+
compression-level: 0
3436

3537
build_wheels:
3638
name: Build wheels on ${{ matrix.os }}
@@ -68,7 +70,9 @@ jobs:
6870
- name: Upload wheels
6971
uses: actions/upload-artifact@v4
7072
with:
73+
name: bdist-${{ matrix.os }}
7174
path: wheelhouse/*.whl
75+
compression-level: 0
7276

7377
build_arch_wheels:
7478
name: Build wheels on Linux ${{ matrix.arch }}
@@ -82,7 +86,7 @@ jobs:
8286
with:
8387
submodules: true
8488

85-
- uses: docker/setup-qemu-action@v2
89+
- uses: docker/setup-qemu-action@v3
8690
with:
8791
platforms: all
8892

@@ -98,4 +102,6 @@ jobs:
98102
- name: Upload wheels
99103
uses: actions/upload-artifact@v4
100104
with:
105+
name: bdist-linux-${{ matrix.arch }}
101106
path: wheelhouse/*.whl
107+
compression-level: 0

.github/workflows/push_to_master.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- name: Upload sdist
3131
uses: actions/upload-artifact@v4
3232
with:
33+
name: sdist
3334
path: dist/*.tar.gz
35+
compression-level: 0
3436

3537
build_wheels:
3638
name: Build wheels on ${{ matrix.os }}
@@ -68,7 +70,9 @@ jobs:
6870
- name: Upload wheels
6971
uses: actions/upload-artifact@v4
7072
with:
73+
name: bdist-${{ matrix.os }}
7174
path: wheelhouse/*.whl
75+
compression-level: 0
7276

7377
build_arch_wheels:
7478
name: Build wheels on Linux ${{ matrix.arch }}
@@ -82,7 +86,7 @@ jobs:
8286
with:
8387
submodules: true
8488

85-
- uses: docker/setup-qemu-action@v2
89+
- uses: docker/setup-qemu-action@v3
8690
with:
8791
platforms: all
8892

@@ -98,7 +102,9 @@ jobs:
98102
- name: Upload wheels
99103
uses: actions/upload-artifact@v4
100104
with:
105+
name: bdist-linux-${{ matrix.arch }}
101106
path: wheelhouse/*.whl
107+
compression-level: 0
102108

103109
upload_pypi:
104110
needs: [build_arch_wheels, build_wheels, build_sdist]
@@ -109,13 +115,11 @@ jobs:
109115

110116
- uses: actions/download-artifact@v4
111117
with:
112-
# unpacks default artifact into dist/
113-
# if `name: artifact` is omitted, the action will create extra parent dir
114-
name: artifact
115118
path: dist
119+
merge-multiple: true
116120

117121
- name: Publish distribution to Test PyPI
118-
uses: pypa/gh-action-pypi-publish@v1.8.6
122+
uses: pypa/gh-action-pypi-publish@release/v1
119123
with:
120124
skip_existing: true
121125
user: __token__

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
- name: Upload sdist
3535
uses: actions/upload-artifact@v4
3636
with:
37+
name: sdist
3738
path: dist/*.tar.gz
39+
compression-level: 0
3840

3941
build_wheels:
4042
name: Build wheels on ${{ matrix.os }}
@@ -71,7 +73,9 @@ jobs:
7173
- name: Upload wheels
7274
uses: actions/upload-artifact@v4
7375
with:
76+
name: bdist-${{ matrix.os }}
7477
path: wheelhouse/*.whl
78+
compression-level: 0
7579

7680
build_arch_wheels:
7781
name: Build wheels on Linux ${{ matrix.arch }}
@@ -85,7 +89,7 @@ jobs:
8589
with:
8690
submodules: true
8791

88-
- uses: docker/setup-qemu-action@v2
92+
- uses: docker/setup-qemu-action@v3
8993
with:
9094
platforms: all
9195

@@ -101,7 +105,9 @@ jobs:
101105
- name: Upload wheels
102106
uses: actions/upload-artifact@v4
103107
with:
108+
name: bdist-linux-${{ matrix.arch }}
104109
path: wheelhouse/*.whl
110+
compression-level: 0
105111

106112
upload_pypi:
107113
needs: [build_arch_wheels, build_wheels, build_sdist]
@@ -110,13 +116,11 @@ jobs:
110116
steps:
111117
- uses: actions/download-artifact@v4
112118
with:
113-
# unpacks default artifact into dist/
114-
# if `name: artifact` is omitted, the action will create extra parent dir
115-
name: artifact
116119
path: dist
120+
merge-multiple: true
117121

118122
- name: Publish distribution to PyPI
119-
uses: pypa/gh-action-pypi-publish@v1.8.6
123+
uses: pypa/gh-action-pypi-publish@release/v1
120124
with:
121125
user: __token__
122126
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)