generated from divnix/digga
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check & Upload to Cache with GitHub Action
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "Check & Cachix" | ||
on: | ||
push: | ||
branches: | ||
- core | ||
- trying | ||
- staging | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v13 | ||
with: | ||
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210415_76980a1/install | ||
extra_nix_config: | | ||
experimental-features = nix-command flakes | ||
system-features = nixos-test benchmark big-parallel kvm recursive-nix | ||
substituters = https://nrdxp.cachix.org https://nix-community.cachix.org https://cache.nixos.org | ||
trusted-public-keys = nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | ||
- uses: cachix/cachix-action@v10 | ||
with: | ||
name: nrdxp | ||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- run: nix -Lv flake check | ||
- run: nix -Lv build ".#nixosConfigurations.NixOS.config.system.build.toplevel" | ||
- run: nix -Lv develop -c echo OK |