Skip to content

Commit

Permalink
Bump actions/upload-artifact to v4 and automatically merge artefacts (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Feb 15, 2025
1 parent fabbd69 commit 373bb5c
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ jobs:
- name: Build wheels
run: pip wheel . -v --wheel-dir=dist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
# Upload artifacts even if tests fail
if: ${{ always() }}
with:
name: artifacts
name: artifacts-${{ matrix.python-version }}-${{ matrix.architecture }}
path: dist/*.whl
if-no-files-found: error

Expand Down Expand Up @@ -107,12 +107,26 @@ jobs:
- name: Build wheels
run: python -m build --wheel --config-setting=--build-option=build_ext --config-setting=--build-option=-L.\arm64libs --config-setting=--build-option=--plat-name=win-arm64 --config-setting=--build-option=build --config-setting=--build-option=--plat-name=win-arm64 --config-setting=--build-option=bdist_wheel --config-setting=--build-option=--plat-name=win-arm64

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-${{ matrix.python-version }}-arm64
path: dist/*.whl
if-no-files-found: error

merge:
runs-on: windows-latest
needs: [test, build_arm64]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: artifacts
pattern: artifacts-*
- name: Delete standalone Artifacts
uses: geekyeggo/delete-artifact@v5
with:
name: artifacts-*

# This job can be run locally by running `pre-commit run`
checkers:
runs-on: windows-2019
Expand Down

0 comments on commit 373bb5c

Please sign in to comment.