Skip to content

Commit

Permalink
Forget about nix-fast-build
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Jun 17, 2024
1 parent 410440c commit 4075063
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ jobs:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
trusted-public-keys = nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://nix-gaming.cachix.org https://cache.nixos.org
connect-timeout = 5
system-features = nixos-test benchmark big-parallel kvm
- uses: cachix/cachix-action@v14
with:
name: joinemm
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Run nix-fast-build
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: |
nix run github:Mic92/nix-fast-build -- --cachix-cache joinemm --no-nom --skip-cached \
--option substituters "https://cache.nixos.org/ https://nix-gaming.cachix.org" \
--option trusted-public-keys "cache.nixos.org:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-gaming.cachix.org:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
nix build .#nixosConfigurations.zeus.config.system.build.toplevel
6 changes: 4 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
substituters = https://cache.nixos.org https://nix-gaming.cachix.org https://joinemm.cachix.org
trusted-public-keys = cache.nixos.org:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-gaming.cachix.org:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4= joinemm.cachix.org:aMZBO1baRjhaI5QzePLelFz/GJ82fZOjmiHQwCl1FxI=
trusted-public-keys = nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4= joinemm.cachix.org-1:aMZBO1baRjhaI5QzePLelFz/GJ82fZOjmiHQwCl1FxI= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://nix-gaming.cachix.org https://joinemm.cachix.org https://cache.nixos.org
connect-timeout = 5
system-features = nixos-test benchmark big-parallel kvm
- name: Run nix flake check
run: nix flake check -v
6 changes: 0 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@
};
};

checks.x86_64-linux =
nixpkgs.lib.mapAttrs' (
name: config: nixpkgs.lib.nameValuePair name config.config.system.build.toplevel
)
self.nixosConfigurations;

formatter.x86_64-linux =
treefmt-nix.lib.mkWrapper
nixpkgs.legacyPackages.x86_64-linux
Expand Down

0 comments on commit 4075063

Please sign in to comment.