Skip to content

Commit

Permalink
Updated Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanz committed Mar 21, 2024
1 parent 9c474dd commit 65d933b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 37 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
run: |
pip install py-sr25519-bindings --no-index --find-links dist --force-reinstall
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl
windows:
runs-on: windows-latest
strategy:
Expand Down Expand Up @@ -82,10 +82,10 @@ jobs:
run: |
pip install py-sr25519-bindings --no-index --find-links dist --force-reinstall
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl

linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -114,10 +114,10 @@ jobs:
manylinux: auto
args: -i python${{ matrix.python-version }} --release --out dist
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl

muslwheels_x86:
name: Build musllinux wheels for x86
Expand All @@ -139,11 +139,11 @@ jobs:
with:
output-dir: dist


- uses: actions/upload-artifact@v3
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl

aarch64_wheels:
name: Build wheels for aarch64 linux
Expand Down Expand Up @@ -171,10 +171,11 @@ jobs:
output-dir: dist


- uses: actions/upload-artifact@v3
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl

build_sdist:
name: Build source distribution
Expand All @@ -187,6 +188,6 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: wheels
name: dist-src
path: dist/*.tar.gz

43 changes: 23 additions & 20 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
run: |
pip install py-sr25519-bindings --no-index --find-links dist --force-reinstall
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl
windows:
runs-on: windows-latest
strategy:
Expand Down Expand Up @@ -81,10 +81,10 @@ jobs:
run: |
pip install py-sr25519-bindings --no-index --find-links dist --force-reinstall
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl

linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -113,10 +113,10 @@ jobs:
manylinux: auto
args: -i python${{ matrix.python-version }} --release --out dist
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl

muslwheels_x86:
name: Build musllinux wheels for x86
Expand All @@ -138,11 +138,11 @@ jobs:
with:
output-dir: dist


- uses: actions/upload-artifact@v3
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl

aarch64_wheels:
name: Build wheels for aarch64 linux
Expand Down Expand Up @@ -170,10 +170,11 @@ jobs:
output-dir: dist


- uses: actions/upload-artifact@v3
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
name: dist-wheels
path: dist/*.whl

build_sdist:
name: Build source distribution
Expand All @@ -186,18 +187,20 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: wheels
name: dist-src
path: dist/*.tar.gz

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ macos, windows, linux, muslwheels_x86, aarch64_wheels, build_sdist]
needs: [macos, windows, linux, muslwheels_x86, aarch64_wheels, build_sdist]
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: dist-*
path: dist
merge-multiple: true
- uses: actions/setup-python@v2
with:
python-version: 3.9
Expand Down

0 comments on commit 65d933b

Please sign in to comment.