From c25ebfcee884f938d84315e49a32575926f53a0d Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Thu, 1 Jul 2021 17:54:04 +0200 Subject: [PATCH] Add compression for base image Add .tar.xz with maximum compression -e9 Signed-off-by: Bensuperpc --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 234e365..1201765 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: - name: archive base run: | mkdir -p cache - docker save -o ./cache/base.tar dockcross/base:latest + docker save dockcross/base:latest | xz -e9 -T0 > base.tar.xz - name: save base uses: actions/upload-artifact@v2 with: @@ -54,7 +54,7 @@ jobs: name: cache path: ./cache - name: load base - run: docker load -i ./cache/base.tar + run: xz -d -k < base.tar.xz | docker load - name: build run: make ${{ matrix.arch_name }} - name: test