Upload Nix closure
This commit is contained in:
parent
d73bb0a676
commit
345fd479ed
18
.github/workflows/build.yaml
vendored
18
.github/workflows/build.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue