Fix broken CI caused by Nix reinstallation wiping out the Magic Nix Cache #79

Merged
lucperkins merged 5 commits from fix-mnc-issue into main 2024-05-02 17:05:28 +00:00
Showing only changes of commit f957521643 - Show all commits

View file

@ -88,15 +88,13 @@ jobs:
hello
nix store gc
nix run nixpkgs#hello
- name: Uninstall Nix
run: |
/nix/nix-installer uninstall --no-confirm
- name: Reinstall Nix
uses: ./
with:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
reinstall: true
extra-conf: |
use-sqlite-wal = true
- name: Test `nix` with `$GITHUB_PATH`
@ -174,15 +172,15 @@ jobs:
if: success() || failure()
run: |
pkill magic-nix-cache
- name: Uninstall Nix
run: |
/nix/nix-installer uninstall --no-confirm
# Reinstate the MNC
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Reinstall Nix
uses: ./
with:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
reinstall: true
extra-conf: |
use-sqlite-wal = true
- name: Test `nix` with `$GITHUB_PATH`