Add cachix #6
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
name: "Nix" | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: sc-tools | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
# This checks the packages compile with the flake checks, see `flake.nix` for detials | |
- name: Flake check | |
run: nix flake check | |
# This checks the packages compile with cabal | |
- name: Cabal build into develop shell | |
run: nix develop && cabal build all -j | |