Add compression for base image

Add .tar.xz with maximum compression -e9

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2021-07-01 17:54:04 +02:00
parent bfd2f18e73
commit c25ebfcee8

View File

@ -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