From 345fd479ed431a68568c185e75b043c7b087c6fc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 9 Jan 2024 12:13:41 +0100 Subject: [PATCH] Upload Nix closure --- .github/workflows/build.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5a8f181..ba6de9a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,14 +20,14 @@ 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-macOS - path: result/bin/magic-nix-cache + name: magic-nix-cache-ARM64-macOS.closure.xz + path: magic-nix-cache.closure.xz retention-days: 1 build-artifacts-X64-macOS: @@ -47,14 +47,14 @@ 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-X64-macOS - path: result/bin/magic-nix-cache + name: magic-nix-cache-X64-macOS.closure.xz + path: magic-nix-cache.closure.xz retention-days: 1 build-artifacts-X64-Linux: @@ -74,12 +74,12 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action-priv@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-X64-Linux - path: result/bin/magic-nix-cache + name: magic-nix-cache-X64-Linux.closure.xz + path: magic-nix-cache.closure.xz retention-days: 1