feat: add diff ci (#18)
This commit is contained in:
parent
2ceb170cb5
commit
d8aa155165
2 changed files with 17 additions and 6 deletions
10
.github/workflows/diff-pr.yaml
vendored
10
.github/workflows/diff-pr.yaml
vendored
|
@ -18,13 +18,11 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: pride
|
target: citadel
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: sloth
|
target: rickenbacker
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: eden
|
target: dns01
|
||||||
- os: ubuntu-latest
|
|
||||||
target: wrath
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Create nix mount point
|
- name: Create nix mount point
|
||||||
|
@ -54,7 +52,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v14
|
- uses: cachix/cachix-action@v14
|
||||||
with:
|
with:
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -163,6 +163,19 @@
|
||||||
|
|
||||||
# deploy-rs: This is highly advised, and will prevent many possible mistakes
|
# deploy-rs: This is highly advised, and will prevent many possible mistakes
|
||||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
|
|
||||||
|
# Convenience output that aggregates the outputs for home, nixos, and darwin configurations.
|
||||||
|
# Also used in ci to build targets generally.
|
||||||
|
top =
|
||||||
|
let
|
||||||
|
nixtop = nixpkgs.lib.genAttrs
|
||||||
|
(builtins.attrNames inputs.self.nixosConfigurations)
|
||||||
|
(attr: inputs.self.nixosConfigurations.${attr}.config.system.build.toplevel);
|
||||||
|
# hometop = genAttrs
|
||||||
|
# (builtins.attrNames inputs.self.homeManagerConfigurations)
|
||||||
|
# (attr: inputs.self.homeManagerConfigurations.${attr}.activationPackage);
|
||||||
|
in
|
||||||
|
nixtop; # // hometop
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue