Merge pull request #205 from pbogdan/dependabot/github_actions/cachix… #326
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: "Build" | |
on: | |
pull_request: | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v17 | |
with: | |
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210126_f15f0b8/install | |
- name: Enable nix-command feature | |
run: echo "experimental-features = nix-command" | sudo tee -a /etc/nix/nix.conf | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: pbogdan | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: Nix Stable build | |
run: nix-build | |
- name: Enable flake support | |
run: echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf | |
- name: Nix Flakes build | |
run: nix build |