Merge pull request #154 from typelevel/update_flake_lock_action #189
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: cache | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Install Nix️" | |
uses: cachix/install-nix-action@v25 | |
- name: "Install Cachix️" | |
uses: cachix/cachix-action@v14 | |
with: | |
name: typelevel | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: "Run checks" | |
run: nix flake check | |
- name: "Build dev shells" | |
run: for shell in library application; do nix develop .#${shell} -c true; done |