Skip to content

Commit

Permalink
[ci] fix: create distinct artifact for each GH actions workflow step …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
SpotlightKid committed Nov 6, 2024
1 parent 7a7395d commit d8aa945
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pr_to_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
compression-level: 0

build_wheels:
name: Build wheels on ${{ matrix.os }}
Expand Down Expand Up @@ -68,7 +70,9 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: bdist-${{ matrix.os }}
path: wheelhouse/*.whl
compression-level: 0

build_arch_wheels:
name: Build wheels on Linux ${{ matrix.arch }}
Expand All @@ -82,7 +86,7 @@ jobs:
with:
submodules: true

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-qemu-action@v3
with:
platforms: all

Expand All @@ -98,4 +102,6 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: bdist-linux-${{ matrix.arch }}
path: wheelhouse/*.whl
compression-level: 0
14 changes: 9 additions & 5 deletions .github/workflows/push_to_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
compression-level: 0

build_wheels:
name: Build wheels on ${{ matrix.os }}
Expand Down Expand Up @@ -68,7 +70,9 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: bdist-${{ matrix.os }}
path: wheelhouse/*.whl
compression-level: 0

build_arch_wheels:
name: Build wheels on Linux ${{ matrix.arch }}
Expand All @@ -82,7 +86,7 @@ jobs:
with:
submodules: true

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-qemu-action@v3
with:
platforms: all

Expand All @@ -98,7 +102,9 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: bdist-linux-${{ matrix.arch }}
path: wheelhouse/*.whl
compression-level: 0

upload_pypi:
needs: [build_arch_wheels, build_wheels, build_sdist]
Expand All @@ -109,13 +115,11 @@ jobs:

- uses: actions/download-artifact@v4
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist
merge-multiple: true

- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.8.6
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
user: __token__
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
compression-level: 0

build_wheels:
name: Build wheels on ${{ matrix.os }}
Expand Down Expand Up @@ -71,7 +73,9 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: bdist-${{ matrix.os }}
path: wheelhouse/*.whl
compression-level: 0

build_arch_wheels:
name: Build wheels on Linux ${{ matrix.arch }}
Expand All @@ -85,7 +89,7 @@ jobs:
with:
submodules: true

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-qemu-action@v3
with:
platforms: all

Expand All @@ -101,7 +105,9 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: bdist-linux-${{ matrix.arch }}
path: wheelhouse/*.whl
compression-level: 0

upload_pypi:
needs: [build_arch_wheels, build_wheels, build_sdist]
Expand All @@ -110,13 +116,11 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist
merge-multiple: true

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.6
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Expand Down

0 comments on commit d8aa945

Please sign in to comment.