Skip to content

Commit

Permalink
ci: upgrade actions/upload-artifact from v3 to v4 (#73)
Browse files Browse the repository at this point in the history
* ci: upgrade actions/upload-artifact from v3 to v4

* Update CI.yml

* ci: configure Git to support long paths in CI workflow
  • Loading branch information
diceroll123 authored Feb 22, 2025
1 parent 9163e1d commit 7341534
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
target: x86_64
args: --release --find-interpreter --out dist
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-x86_64
path: dist

macos-universal:
Expand All @@ -42,9 +42,9 @@ jobs:
with:
args: --release --find-interpreter --target universal2-apple-darwin --out dist
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-universal
path: dist

windows:
Expand All @@ -58,14 +58,16 @@ jobs:
- target: aarch64-pc-windows-msvc
steps:
- uses: actions/checkout@v4
- name: "Configure Git to support long paths"
run: git config --system core.longpaths true
- name: "Build wheels - windows"
uses: PyO3/maturin-action@v1
with:
args: --release --find-interpreter --out dist --target ${{ matrix.platform.target }}
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.platform.target }}
path: dist

linux:
Expand All @@ -86,9 +88,9 @@ jobs:
command: build
args: --release --find-interpreter -o dist
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.target }}
path: dist

linux-cross:
Expand Down Expand Up @@ -118,9 +120,9 @@ jobs:
docker-options: ${{ matrix.platform.maturin_docker_options }}
args: --release --find-interpreter -o dist
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.platform.target }}
path: dist

musllinux:
Expand All @@ -140,9 +142,9 @@ jobs:
manylinux: musllinux_1_2
args: --release --find-interpreter -o dist
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.target }}
path: dist

musllinux-cross:
Expand All @@ -166,9 +168,9 @@ jobs:
args: --release --find-interpreter -o dist
docker-options: ${{ matrix.platform.maturin_docker_options }}
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.platform.target }}
path: dist

# this only exists for making github action protections easier to manage
Expand All @@ -194,9 +196,9 @@ jobs:
- all-builds-pass
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
name: wheels-*
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
Expand Down

0 comments on commit 7341534

Please sign in to comment.