Shrink the chain, rebuild every time

This commit is contained in:
Graham Christensen 2024-06-12 21:20:43 -04:00
parent 3d21d10cae
commit 3c54557810
2 changed files with 5 additions and 2 deletions

View file

@ -80,4 +80,5 @@ jobs:
nix develop --command echo "just testing"
- name: Exhaust our GitHub Actions Cache tokens
run: |
date >> README.md
nix build .#veryLongChain -v

View file

@ -46,12 +46,14 @@
veryLongChain =
let
ctx = ./README.md;
# Function to write the current date to a file
startFile =
pkgs.stdenv.mkDerivation {
name = "start-file";
buildCommand = ''
echo ${magic-nix-cache} > $out
cat ${ctx} > $out
'';
};
@ -70,7 +72,7 @@
in
# Starting point of the chain
createChain 1000 startFile;
createChain 200 startFile;
});
devShells = forEachSupportedSystem ({ pkgs, cranePkgs, lib }: {