Shrink the chain, rebuild every time
This commit is contained in:
parent
3d21d10cae
commit
3c54557810
1
.github/workflows/check-and-test.yaml
vendored
1
.github/workflows/check-and-test.yaml
vendored
|
@ -80,4 +80,5 @@ jobs:
|
||||||
nix develop --command echo "just testing"
|
nix develop --command echo "just testing"
|
||||||
- name: Exhaust our GitHub Actions Cache tokens
|
- name: Exhaust our GitHub Actions Cache tokens
|
||||||
run: |
|
run: |
|
||||||
|
date >> README.md
|
||||||
nix build .#veryLongChain -v
|
nix build .#veryLongChain -v
|
||||||
|
|
|
@ -46,12 +46,14 @@
|
||||||
|
|
||||||
veryLongChain =
|
veryLongChain =
|
||||||
let
|
let
|
||||||
|
ctx = ./README.md;
|
||||||
|
|
||||||
# Function to write the current date to a file
|
# Function to write the current date to a file
|
||||||
startFile =
|
startFile =
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "start-file";
|
name = "start-file";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
echo ${magic-nix-cache} > $out
|
cat ${ctx} > $out
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -70,7 +72,7 @@
|
||||||
|
|
||||||
in
|
in
|
||||||
# Starting point of the chain
|
# Starting point of the chain
|
||||||
createChain 1000 startFile;
|
createChain 200 startFile;
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = forEachSupportedSystem ({ pkgs, cranePkgs, lib }: {
|
devShells = forEachSupportedSystem ({ pkgs, cranePkgs, lib }: {
|
||||||
|
|
Loading…
Reference in a new issue