Skip to content

Commit

Permalink
use magic nix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
CobaltCause committed Oct 9, 2023
1 parent bcec335 commit 14c59f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 to Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Configure `nix-direnv`
run: |
mkdir -p "$HOME/.config/nixpkgs"
Expand Down Expand Up @@ -66,5 +69,6 @@ jobs:

- name: Perform continuous integration
run: |
nix build
direnv allow
direnv exec . engage
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
packages.default = builder {
src = ./.;

# Just to make sure the cache actually works
postInstall = "sleep 30";

inherit stdenv;
};

Expand Down

0 comments on commit 14c59f3

Please sign in to comment.