Skip to content

Commit fb96f90

Browse files
committed
ci: GitHub Actionsのキャッシュ設定を調整
Cachixはなるべく統一してncaqを使用するように変更したため。 また統一して自前のキャッシュサーバを使用します。
1 parent d4927f7 commit fb96f90

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
sandbox = relaxed
1616
- uses: cachix/cachix-action@v16
1717
with:
18-
name: u-blacklist-rule
18+
name: ncaq
1919
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
2020
- run: nix flake check

flake.nix

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,20 @@
106106

107107
nixConfig = {
108108
extra-substituters = [
109-
"https://cache.nixos.org"
110-
"https://cache.iog.io"
111-
"https://u-blacklist-rule.cachix.org"
109+
"https://cache.nixos.org/"
110+
"https://niks3-public.ncaq.net/"
111+
"https://ncaq.cachix.org/"
112+
"https://nix-community.cachix.org/"
113+
"https://cache.iog.io/"
112114
];
113115
extra-trusted-public-keys = [
116+
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
117+
"niks3-public.ncaq.net-1:e/B9GomqDchMBmx3IW/TMQDF8sjUCQzEofKhpehXl04="
118+
"ncaq.cachix.org-1:XF346GXI2n77SB5Yzqwhdfo7r0nFcZBaHsiiMOEljiE="
119+
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
114120
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
115-
"u-blacklist-rule.cachix.org-1:KQl91lyBwQa6a6Np6WLqstaRmRH+R4ogkLzG9IV4Sjk="
116121
];
117-
allow-import-from-derivation = true;
122+
allow-import-from-derivation = true; # haskell.nixの仕様でshowやcheckで必要になる。
118123
# __noChroot = true を持つderivationのみサンドボックス外で実行する。
119124
sandbox = "relaxed";
120125
};

0 commit comments

Comments
 (0)