From 5c7032528758f82ebc4a7b245f23582ffe7338ab Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Mon, 9 Oct 2023 11:32:17 -0700 Subject: [PATCH] use magic nix cache --- .github/workflows/ci.yml | 4 ++++ flake.nix | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d22553..020946e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,9 @@ jobs: extra-substituters = https://nix-community.cachix.org extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= + - name: Pop/push Magic Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@v2 + - name: Configure `nix-direnv` run: | mkdir -p "$HOME/.config/nixpkgs" @@ -66,5 +69,6 @@ jobs: - name: Perform continuous integration run: | + nix build direnv allow direnv exec . engage diff --git a/flake.nix b/flake.nix index 42d8cac..d1dc695 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,9 @@ packages.default = builder { src = ./.; + # Just to make sure the cache actually works + postInstall = "sleep 30"; + inherit stdenv; };