From a969163f7978f98848433867999c53fa0d7babee Mon Sep 17 00:00:00 2001 From: Tom Foster Date: Mon, 22 Apr 2024 21:10:33 +0100 Subject: [PATCH] Compress nix store to artifact filenames with special characters --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ca976f2..b4cd94ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,13 +61,17 @@ jobs: - name: Populate `/nix/store` run: nix develop --command true + - name: Package `/nix/store` for Artifact + run: | + tar -czf nix-store.tar.gz /nix/store + # Store the build environment in an artifact - name: Cache build environment uses: actions/upload-artifact@v4 with: name: build-environment path: | - /nix/store + nix-store.tar.gz ~/.cargo $HOME/.direnvrc /etc/nix/nix.conf @@ -93,6 +97,10 @@ jobs: with: name: build-environment + - name: Extract Nix Store Archive + run: | + tar -xzf nix-store.tar.gz -C / + - name: Sync repository uses: actions/checkout@v4