ci: run flake check before building stuff
This commit is contained in:
parent
799ae3e92a
commit
b7b9ececa4
18
.github/workflows/cachix.yaml
vendored
18
.github/workflows/cachix.yaml
vendored
|
@ -9,9 +9,27 @@ on:
|
|||
- 'flake.lock'
|
||||
- '.github/workflows/*'
|
||||
jobs:
|
||||
flake-check:
|
||||
name: Flake check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: cachix/install-nix-action@v16
|
||||
|
||||
- uses: cachix/cachix-action@v10
|
||||
with:
|
||||
name: alarsyo
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
extraPullNames: "nix-community"
|
||||
|
||||
- name: Build package
|
||||
run: nix flake check
|
||||
|
||||
build-pkgs:
|
||||
name: Nix packages
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ flake-check ]
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
Loading…
Reference in a new issue