Extract closure in prior step

This commit is contained in:
Luc Perkins 2024-05-17 17:28:37 -03:00
parent 6f4ce1d570
commit e85ce91771
No known key found for this signature in database
GPG key ID: 16DB1108FB591835

View file

@ -45,6 +45,15 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Extract
id: extract
run: |
OUTPUT=$(cat magic-nix-cache.closure.xz | xz -d | nix-store --import)
MNC_BIN_PATH=$(echo "${OUTPUT}" | tail -n 1)
MAGIC_NIX_CACHE="${MNC_BIN_PATH}/bin/magic-nix-cache"
echo "mnc-path=${MAGIC_NIX_CACHE}" >> "$GITHUB_OUTPUT"
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
source-binary: "magic-nix-cache.closure.xz"
source-binary: "${{ steps.extract.outputs.mnc-path }}"