Fix broken CI caused by Nix reinstallation wiping out the Magic Nix Cache #79
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -88,15 +88,13 @@ jobs:
|
||||||
hello
|
hello
|
||||||
nix store gc
|
nix store gc
|
||||||
nix run nixpkgs#hello
|
nix run nixpkgs#hello
|
||||||
- name: Uninstall Nix
|
|
||||||
run: |
|
|
||||||
/nix/nix-installer uninstall --no-confirm
|
|
||||||
- name: Reinstall Nix
|
- name: Reinstall Nix
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
logger: pretty
|
logger: pretty
|
||||||
log-directives: nix_installer=trace
|
log-directives: nix_installer=trace
|
||||||
backtrace: full
|
backtrace: full
|
||||||
|
reinstall: true
|
||||||
extra-conf: |
|
extra-conf: |
|
||||||
use-sqlite-wal = true
|
use-sqlite-wal = true
|
||||||
- name: Test `nix` with `$GITHUB_PATH`
|
- name: Test `nix` with `$GITHUB_PATH`
|
||||||
|
@ -174,15 +172,15 @@ jobs:
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
run: |
|
run: |
|
||||||
pkill magic-nix-cache
|
pkill magic-nix-cache
|
||||||
- name: Uninstall Nix
|
# Reinstate the MNC
|
||||||
run: |
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
/nix/nix-installer uninstall --no-confirm
|
|
||||||
- name: Reinstall Nix
|
- name: Reinstall Nix
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
logger: pretty
|
logger: pretty
|
||||||
log-directives: nix_installer=trace
|
log-directives: nix_installer=trace
|
||||||
backtrace: full
|
backtrace: full
|
||||||
|
reinstall: true
|
||||||
extra-conf: |
|
extra-conf: |
|
||||||
use-sqlite-wal = true
|
use-sqlite-wal = true
|
||||||
- name: Test `nix` with `$GITHUB_PATH`
|
- name: Test `nix` with `$GITHUB_PATH`
|
||||||
|
|
Loading…
Reference in a new issue