Skip to content

Commit

Permalink
Update the download/upload artifact actions to version 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Jan 18, 2024
1 parent 08d2774 commit 47c6548
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-rtools40.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
shell: c:\rtools40\usr\bin\bash.exe --login {0}
- name: "Upload binaries"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mingw-w64-${{ matrix.msystem }}-tiledb
path: .github/workflows/mingw-w64-tiledb/*.pkg.tar.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# Save the tiledb_unit binary for use in the next step
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tiledb_unit
path: ${{ github.workspace }}/build/tiledb/test/tiledb_unit
Expand All @@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v3

- name: Download a single artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: tiledb_unit
path: ${{ github.workspace }}/build/tiledb/test/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ jobs:
- name: 'upload dumpfile artifacts' # https://github.com/actions/upload-artifact#where-does-the-upload-go
if: ${{ always() == true && startsWith(matrix.os, 'windows-') == true }} # only run this job if the build step failed
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 10
name: "coredumps.${{ github.job }}.${{ matrix.os }}.${{matrix.environ}}.${{ github.run_number }}.${{github.run_id}}.${{github.run_attempt}}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-linux_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,20 +228,20 @@ jobs:

- name: 'Upload failure artifacts (Linux)' # https://github.com/actions/upload-artifact#where-does-the-upload-go
if: ${{ startsWith(matrix.os, 'ubuntu-') == true }} # only run this job if the build step failed
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 10
name: "coredumps.${{ github.job }}.${{ matrix.os }}.${{ github.run_number }}.${{github.run_id}}.${{github.run_attempt}}"
name: "coredumps.${{ github.job }}.${{ matrix.os }}.${{ inputs.ci_backend }}.${{ github.run_number }}.${{github.run_id}}.${{github.run_attempt}}"
if-no-files-found: warn # 'ignore', 'warn' or 'error' are available, defaults to `warn`
path: |
/var/lib/apport/coredump/
- name: 'Upload failure artifacts (macOS)' # https://github.com/actions/upload-artifact#where-does-the-upload-go
if: ${{ failure() == true && startsWith(matrix.os, 'macos-') == true }} # only run this job if the build step failed
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 10
name: "${{ matrix.os }}.coredumps.${{ github.job }}.${{ github.run_number }}.${{github.run_id}}.${{github.run_attempt}}"
name: "${{ matrix.os }}.${{ inputs.ci_backend }}.coredumps.${{ github.job }}.${{ github.run_number }}.${{github.run_id}}.${{github.run_attempt}}"
if-no-files-found: warn # 'ignore', 'warn' or 'error' are available, defaults to `warn`
path: |
/cores/
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ jobs:
Compress-Archive -Path dist\* -DestinationPath ${{ steps.get-values.outputs.archive_name }}.zip
shell: pwsh
- name: Upload release artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tiledb-dist
name: tiledb-dist-${{ matrix.platform }}
path: ${{ steps.get-values.outputs.archive_name }}.*
- name: Archive build directory
run: |
tar -czf build-${{ matrix.platform }}.tar.gz -C build .
- name: Upload build directory
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tiledb-build
name: tiledb-build-${{ matrix.platform }}
path: build-${{ matrix.platform }}.tar.gz
- name: "Print log files (failed build only)"
run: |
Expand All @@ -129,9 +129,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download release artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: tiledb-dist
pattern: tiledb-dist-*
merge-multiple: true
path: dist
- name: Test names of release artifacts
run: |
Expand All @@ -146,9 +147,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download release artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: tiledb-dist
pattern: tiledb-dist-*
merge-multiple: true
path: dist
- name: Publish release artifacts
uses: actions/github-script@v6
Expand Down

0 comments on commit 47c6548

Please sign in to comment.