From af28ab74221eab8cdba0459f00ddc69f8ad50f65 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Tue, 12 Apr 2022 10:58:21 -0300 Subject: [PATCH] Tar and zip the xcresult bundles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m hoping this will reduce the upload time (more by reducing the number of files than the size). --- .github/workflows/integration-test-iOS16_2.yaml | 4 ++-- Scripts/continuously-run-tests-and-upload-results.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-test-iOS16_2.yaml b/.github/workflows/integration-test-iOS16_2.yaml index 937995a43..febfcec50 100644 --- a/.github/workflows/integration-test-iOS16_2.yaml +++ b/.github/workflows/integration-test-iOS16_2.yaml @@ -66,5 +66,5 @@ jobs: uses: actions/upload-artifact@v3 if: always() with: - name: xcresult-bundles - path: xcresult-bundles + name: xcresult-bundles.tar.gz + path: xcresult-bundles.tar.gz diff --git a/Scripts/continuously-run-tests-and-upload-results.sh b/Scripts/continuously-run-tests-and-upload-results.sh index c64f1a6a3..2b9346109 100755 --- a/Scripts/continuously-run-tests-and-upload-results.sh +++ b/Scripts/continuously-run-tests-and-upload-results.sh @@ -44,6 +44,8 @@ end_iteration_with_exit_value() { if [[ -e xcresult-bundles ]] then echo "There are `du -d0 -h xcresult-bundles | awk -F '\t' '{print $1}'` of xcresult bundles to be uploaded." + tar --create --gzip xcresult-bundles > xcresult-bundles.tar.gz + echo "The file xcresult-bundles.tar.gz that will be uploaded as an artifact is `du -d0 -h xcresult-bundles.tar.gz | awk -F '\t' '{print $1}'`." else echo "There are no xcresult bundles to be uploaded." fi