Merge pull request #70 from DeterminateSystems/fix-strict-mode-input-name

Fix input name for CI-only strict mode
This commit is contained in:
Luc Perkins 2024-05-22 18:38:50 -03:00 committed by GitHub
commit 18f457e56e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,21 +69,11 @@ jobs:
- name: Install Nix on ${{ matrix.systems.system }} - name: Install Nix on ${{ matrix.systems.system }}
uses: DeterminateSystems/nix-installer-action@main uses: DeterminateSystems/nix-installer-action@main
- name: Extract closure for ${{ matrix.systems.system }} - name: Test magic-nix-cache-action@main on ${{ matrix.systems.runner }}
id: extract uses: DeterminateSystems/magic-nix-cache-action@main
run: |
ARTIFACT="${{ env.ARTIFACT_KEY }}/${{ env.ARCHIVE_NAME }}"
OUTPUT=$(cat ${ARTIFACT} | 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"
- name: Test magic-nix-cache-action@test-fail-mode on ${{ matrix.systems.runner }}
uses: DeterminateSystems/magic-nix-cache-action@test-fail-mode
with: with:
source-binary: "${{ steps.extract.outputs.mnc-path }}" source-binary: "${{ env.ARTIFACT_KEY }}/${{ env.ARCHIVE_NAME }}"
strict-mode: true _internal-strict-mode: true
- name: Run nix to test magic-nix-cache-action - name: Run nix to test magic-nix-cache-action
run: | run: |