Merge pull request #1279 from 414owen/os/support-sublibrary-mods-sigs #171
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: "Test Nix Flake" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
nix: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
name: Nix on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hackage-server.cachix.org-1:iw0iRh6+gsFIrxROFaAt5gKNgIHejKjIfyRdbpPYevY= | |
substituters = https://hydra.iohk.io https://cache.nixos.org/ https://hackage-server.cachix.org/ | |
- uses: cachix/cachix-action@v12 | |
with: | |
# https://nix.dev/tutorials/continuous-integration-github-actions#setting-up-github-actions | |
name: hackage-server | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build | |
- continue-on-error: false | |
run: nix flake check |