ci: nix: use --impure with nix develop #103
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 Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- macos-13 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Run Nix Build | |
run: nix build --print-build-logs . | |
- name: Nix Develop | |
# devenv needs `--impure` | |
run: nix develop --impure --command true |