diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3d56f25..653bc07 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -93,12 +93,12 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - name: Build package - run: "nix build .# -L --fallback" + run: "nix build .# -L --fallback && nix-store --export $(nix-store -qR ./result) | xz -9 > magic-nix-cache.closure.xz" - name: Upload a Build Artifact uses: actions/upload-artifact@v3.1.2 with: # Artifact name name: magic-nix-cache-ARM64-Linux - path: result/bin/magic-nix-cache + path: magic-nix-cache.closure.xz retention-days: 1 diff --git a/.github/workflows/release-branches.yml b/.github/workflows/release-branches.yml index d36a5e3..40e19f7 100644 --- a/.github/workflows/release-branches.yml +++ b/.github/workflows/release-branches.yml @@ -59,7 +59,7 @@ jobs: name: magic-nix-cache-ARM64-Linux path: cache-binary-ARM64-Linux - name: Persist the cache binary - run: cp ./cache-binary-ARM64-Linux/magic-nix-cache ./artifacts/magic-nix-cache-ARM64-Linux + run: cp ./cache-binary-ARM64-Linux/magic-nix-cache.closure.xz ./artifacts/magic-nix-cache-ARM64-Linux - name: Publish Release (Branch) env: