Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit 555d4ba

Browse files
committed
enable gc
1 parent ea3607f commit 555d4ba

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
uses: nix-community/cache-nix-action@v1
1818
with:
1919
key: nix-${{ runner.os }}-front-${{ hashfiles('**/flake.nix', '**/flake.lock') }}
20+
linux-gc-enabled: true
21+
linux-max-store-size: 0
22+
macos-gc-enabled: true
23+
macos-max-store-size: 0
2024
restore-keys: |
2125
nix-${{ runner.os }}-front-${{ hashfiles('**/flake.nix', '**/flake.lock') }}
2226
nix-${{ runner.os }}-front-
@@ -51,6 +55,10 @@ jobs:
5155
uses: nix-community/cache-nix-action@v1
5256
with:
5357
key: nix-${{ runner.os }}-back-${{ hashfiles('**/flake.nix', '**/flake.lock') }}
58+
linux-gc-enabled: true
59+
linux-max-store-size: 0
60+
macos-gc-enabled: true
61+
macos-max-store-size: 0
5462
restore-keys: |
5563
nix-${{ runner.os }}-back-${{ hashfiles('**/flake.nix', '**/flake.lock') }}
5664
nix-${{ runner.os }}-back-

nix-files/workflow.nix

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ let
2323
steps = [
2424
steps.checkout
2525
(steps.installNix { })
26-
(steps.cacheNix { keyJob = "front"; })
26+
(steps.cacheNix {
27+
keyJob = "front";
28+
linuxGCEnabled = true;
29+
linuxMaxStoreSize = 0;
30+
macosGCEnabled = true;
31+
macosMaxStoreSize = 0;
32+
})
2733
{
2834
name = "Build";
2935
run = run.nixScript { inherit dir; inDir = true; name = front.packages.${system}.buildGHPages.pname; };
@@ -46,7 +52,13 @@ let
4652
[
4753
steps.checkout
4854
(steps.installNix { })
49-
(steps.cacheNix { keyJob = "back"; })
55+
(steps.cacheNix {
56+
keyJob = "back";
57+
linuxGCEnabled = true;
58+
linuxMaxStoreSize = 0;
59+
macosGCEnabled = true;
60+
macosMaxStoreSize = 0;
61+
})
5062
{
5163
name = "Log in to Heroku";
5264
uses = "AkhileshNS/heroku-deploy@master";
@@ -63,7 +75,9 @@ let
6375
}
6476
];
6577
};
66-
"${job3}" = (nixCI { purgeCacheNeeds = [ job1 job2 ]; }).jobs.purgeCache;
78+
"${job3}" = (nixCI {
79+
purgeCacheNeeds = [ job1 job2 ];
80+
}).jobs.purgeCache;
6781
};
6882
};
6983
in

0 commit comments

Comments
 (0)