Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: migrate to actions/upload-artifact@v4 and actions/download-artifact@v4 #811

Merged
merged 3 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading