Skip to content

Commit

Permalink
ci: migrate to actions/upload-artifact@v4 and actions/download-artifa…
Browse files Browse the repository at this point in the history
…ct@v4 (#811)
  • Loading branch information
eitsupi authored Feb 17, 2024
1 parent f7137fe commit 752fdc3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ jobs:

- name: upload artifact
if: matrix.config.full-features
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libs
name: checked-lib-${{ steps.rust-target.outputs.TARGET }}
path: ${{ env.LIBR_POLARS_PATH }}

source-with-bin-check:
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/release-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ jobs:
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >>"$GITHUB_ENV"
- name: upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libs
name: libs-${{ matrix.target }}
path: ${{ env.ARTIFACT_NAME }}

test:
Expand Down Expand Up @@ -128,11 +128,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
name: libs
path: libs

- name: prep Rust
working-directory: src/rust
run: |
Expand All @@ -145,6 +140,11 @@ jobs:
fi
rm "$(rustup which cargo)"
- uses: actions/download-artifact@v4
with:
name: libs-${{ env.LIB_TARGET }}
path: libs

- name: prep lib
run: |
ARTIFACT_NAME="${LIB_NAME}-${LIB_VERSION}-${LIB_TARGET}.tar.gz"
Expand Down Expand Up @@ -186,10 +186,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: libs
path: libs
pattern: libs-*
merge-multiple: true

- name: create checksums
working-directory: libs
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
build:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }}) - ${{ matrix.config.target }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})

permissions:
contents: write
Expand Down Expand Up @@ -96,8 +96,9 @@ jobs:
mv ../polars* ./
- name: Upload produced R packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: package-${{ matrix.config.os }}-${{ matrix.config.r }}
path: |
polars_*
polars.zip
Expand Down

0 comments on commit 752fdc3

Please sign in to comment.