This commit is contained in:
parent
6bdf2e95c1
commit
4288323a1b
2 changed files with 15 additions and 2 deletions
|
@ -16,6 +16,8 @@ jobs:
|
|||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan github.com >> ~/.ssh/known_hosts
|
||||
- name: Build with nix (x86_64-linux)
|
||||
run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux" --attic-cache "nixfleet" --skip-cached --result-file result.json || true
|
||||
run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux" --skip-cached --result-file result.json || true
|
||||
- name: Push to cache
|
||||
run: nix run .#push-to-cache -- nixfleet
|
||||
- name: Report checks
|
||||
run: report-checks
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
];
|
||||
|
||||
perSystem =
|
||||
{ config, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
treefmt.config = {
|
||||
projectRootFile = ".git/config";
|
||||
|
@ -42,6 +42,17 @@
|
|||
package = config.treefmt.build.wrapper;
|
||||
};
|
||||
};
|
||||
packages.push-to-cache =
|
||||
let
|
||||
checks = with self.checks; x86_64-linux // aarch64-linux;
|
||||
in
|
||||
pkgs.writeShellScriptBin "push-to-cache.sh" ''
|
||||
attic push $1 --stdin --jobs 4 << EOF
|
||||
${lib.concatStringsSep "\n" (
|
||||
builtins.map (builtins.unsafeDiscardStringContext) (builtins.attrValues checks)
|
||||
)}
|
||||
EOF
|
||||
'';
|
||||
};
|
||||
|
||||
flake.checks =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue