Skip to content

Commit

Permalink
Merge pull request #439 from rsvoboda/upload-download-artifact
Browse files Browse the repository at this point in the history
Bump upload/download-artifact from 3 to 4
  • Loading branch information
michalvavrik authored Dec 15, 2023
2 parents e51d857 + cf49018 commit ae7fe19
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
shell: bash
run: tar -I 'pigz -9' -cf maven-repo.tgz -C ~ .m2/repository
- name: Persist Maven Repo
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: maven-repo
path: maven-repo.tgz
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Download Maven Repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: maven-repo
path: .
Expand All @@ -78,9 +78,9 @@ jobs:
zip -R artifacts-linux-jvm${{ matrix.java }}.zip '*-reports/*'
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ci-artifacts
name: artifacts-linux-jvm${{ matrix.java }}
path: artifacts-linux-jvm${{ matrix.java }}.zip
linux-build-native:
name: Daily - Linux - Native build
Expand All @@ -106,7 +106,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Download Maven Repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: maven-repo
path: .
Expand All @@ -124,9 +124,9 @@ jobs:
zip -R artifacts-linux-native${{ matrix.java }}.zip '*-reports/*'
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ci-artifacts
name: artifacts-linux-native${{ matrix.java }}
path: artifacts-linux-native${{ matrix.java }}.zip
windows-build-jvm:
name: Daily - Windows - JVM build
Expand All @@ -149,7 +149,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Download Maven Repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: maven-repo
path: .
Expand All @@ -168,9 +168,9 @@ jobs:
/usr/bin/find . -name '*-reports/*' -type d | tar -czf artifacts-windows-jvm${{ matrix.java }}.tar -T -
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ci-artifacts
name: artifacts-windows-jvm${{ matrix.java }}
path: artifacts-windows-jvm${{ matrix.java }}.tar
windows-build-native:
name: Daily - Windows - Native build
Expand All @@ -195,7 +195,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Download Maven Repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: maven-repo
path: .
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
/usr/bin/find . -name '*-reports/*' -type d | tar -czf artifacts-windows-native${{ matrix.java }}.tar -T -
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ci-artifacts
name: artifacts-windows-native${{ matrix.java }}
path: artifacts-windows-native${{ matrix.java }}.tar
22 changes: 12 additions & 10 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
shell: bash
run: tar -I 'pigz -9' -cf maven-repo.tgz -C ~ .m2/repository
- name: Persist Maven Repo
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: maven-repo
path: maven-repo.tgz
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Download Maven Repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: maven-repo
path: .
Expand All @@ -72,12 +72,14 @@ jobs:
run: |
mvn -fae -V -B -s .github/mvn-settings.xml -Dvalidate-format clean test
- name: Zip Artifacts
if: failure()
run: |
zip -R artifacts-linux-jvm${{ matrix.java }}.zip '*-reports/*'
- name: Archive artifacts
uses: actions/upload-artifact@v3
if: failure()
uses: actions/upload-artifact@v4
with:
name: ci-artifacts
name: artifacts-linux-jvm${{ matrix.java }}
path: artifacts-linux-jvm${{ matrix.java }}.zip
linux-build-native:
name: PR - Linux - Native build
Expand All @@ -102,7 +104,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Download Maven Repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: maven-repo
path: .
Expand Down Expand Up @@ -135,9 +137,9 @@ jobs:
zip -R artifacts-linux-native${{ matrix.java }}.zip '*-reports/*'
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ci-artifacts
name: artifacts-linux-native${{ matrix.java }}
path: artifacts-linux-native${{ matrix.java }}.zip
windows-build:
name: Windows - PR build
Expand All @@ -162,7 +164,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Download Maven Repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: maven-repo
path: .
Expand Down Expand Up @@ -199,7 +201,7 @@ jobs:
/usr/bin/find . -name '*-reports/*' -type d | tar -czf artifacts-windows${{ matrix.java }}.tar -T -
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ci-artifacts
name: artifacts-windows${{ matrix.java }}
path: artifacts-windows${{ matrix.java }}.tar

0 comments on commit ae7fe19

Please sign in to comment.