From e97af5862cf5f3911258ccdf34bc2a025472cab7 Mon Sep 17 00:00:00 2001 From: Steven Maude Date: Fri, 3 May 2024 18:07:19 +0100 Subject: [PATCH] Use faster compression option One-off comparison in GitHub Actions with the default 4 core runner: * default `pigz`: 1.7G file size, 1m 49s * `--fast`: 1.9G file size, 1m 16s The upload and download time for the file compressed with default settings is about 10 seconds (turning compression off for the upload). --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 11a3f7d..d166139 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,7 @@ jobs: - name: Save docker image run: | - docker save research-template | pigz > /tmp/research-template.tar.gz + docker save research-template | pigz --fast > /tmp/research-template.tar.gz - name: Upload docker image uses: actions/upload-artifact@v4