From 8207770369ee31d701ef6e9a7261131e68c07216 Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Mon, 1 Aug 2022 15:39:36 -0600 Subject: [PATCH] write image to sparse-aware archive format (#1709) --- .github/workflows/product.yaml | 4 ++-- .gitignore | 5 +++-- Makefile | 6 ++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/product.yaml b/.github/workflows/product.yaml index 3b2f25ca5..54741b5fe 100644 --- a/.github/workflows/product.yaml +++ b/.github/workflows/product.yaml @@ -147,9 +147,9 @@ jobs: run: "make V=1 NO_KEY=1 eos.img --debug" - name: Compress image - run: "gzip eos.img" + run: "make gzip" - uses: actions/upload-artifact@v3 with: name: image - path: eos.img.gz + path: eos.tar.gz diff --git a/.gitignore b/.gitignore index 977f6819a..9e63eb749 100644 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,6 @@ deploy_web.sh secrets.db .vscode/ /cargo-deps/**/* -ENVIRONMENT.txt -GIT_HASH.txt \ No newline at end of file +/ENVIRONMENT.txt +/GIT_HASH.txt +/eos.tar.gz \ No newline at end of file diff --git a/Makefile b/Makefile index 2e0fe52e1..2832e6e78 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,10 @@ $(shell sudo true) all: eos.img -gzip: eos.img - gzip -k eos.img +gzip: eos.tar.gz + +eos.tar.gz: eos.img + tar --format=posix -cS -f- eos.img | gzip > eos.tar.gz clean: rm -f eos.img