Skip to content

Commit

Permalink
CI: speed up artifact sharing
Browse files Browse the repository at this point in the history
In some (but not all - this might be infrastructure-dependant) github action runs, considerable amount of time is taken to download the artifact that is all of the Openfire distribution files.

This commit attempts to speed this up by replacing the artifact consisting of many files with an artifact that has only one file: a tar archive of all of those files.
  • Loading branch information
guusdk committed Nov 26, 2023
1 parent a2f1466 commit 1820f1d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ jobs:
with:
name: surefire-reports_java${{ matrix.java }}
path: xmppserver/target/surefire-reports
- name: tar distribution # sharing artifacts that consist of many files can be slow. Share one file instead.
if: ${{ matrix.distribution == 'zulu' }}
run: tar -cf distribution-artifact.tar distribution/target/distribution-base
- name: Upload distribution
if: ${{ matrix.distribution == 'zulu' }}
uses: actions/upload-artifact@v3
with:
name: distribution-java${{ matrix.java }}
path: distribution/target/distribution-base
path: distribution-artifact.tar
- name: Upload test files
if: ${{ matrix.distribution == 'zulu' }}
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -71,7 +74,9 @@ jobs:
uses: actions/download-artifact@v3
with:
name: distribution-java11
path: distribution/target/distribution-base
path: .
- name: untar distribution # sharing artifacts that consist of many files can be slow. Share one file instead.
run: tar -xf distribution-artifact.tar
- name: Download test files from build job.
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -162,7 +167,9 @@ jobs:
uses: actions/download-artifact@v3
with:
name: distribution-java11
path: distribution/target/distribution-base
path: .
- name: untar distribution # sharing artifacts that consist of many files can be slow. Share one file instead.
run: tar -xf distribution-artifact.tar
- name: Download test files from build job.
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -357,7 +364,9 @@ jobs:
uses: actions/download-artifact@v3
with:
name: distribution-java11
path: distribution/target/distribution-base
path: .
- name: untar distribution # sharing artifacts that consist of many files can be slow. Share one file instead.
run: tar -xf distribution-artifact.tar
- name: Download test files from build job.
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 1820f1d

Please sign in to comment.