use flakes in ci
This commit is contained in:
parent
3e1e140f8d
commit
79767236bb
1 changed files with 6 additions and 5 deletions
11
.github/workflows/nix-flake-check.yml
vendored
11
.github/workflows/nix-flake-check.yml
vendored
|
@ -13,13 +13,14 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
nix_path: nixpkgs=channel:nixos-stable
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||
system-features = nixos-test benchmark big-parallel kvm
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: mycache
|
||||
# If you chose signing key for write access
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
# If you chose API tokens for write access OR if you have a private cache
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: nix-build
|
||||
- run: nix-shell --run "echo OK"
|
||||
- run: nix flake check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue