Set up a Nix build. #371
Workflow file for this run
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 support | |
on: push | |
jobs: | |
nix-build: | |
name: nix build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Install Nix β | |
uses: DeterminateSystems/nix-installer-action@v4 | |
- name: Run the Magic Nix Cache π | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Build the package | |
run: nix build | |
nix-flake-check: | |
name: nix check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Install Nix β | |
uses: DeterminateSystems/nix-installer-action@v4 | |
- name: Run the Magic Nix Cache π | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Check the flake for errors | |
run: nix flake check | |
nix-fmt: | |
name: nix check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Install Nix β | |
uses: DeterminateSystems/nix-installer-action@v4 | |
- name: Run the Magic Nix Cache π | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Check the formatting | |
run: nix fmt -- --check . | |
evaluate-nix-shell: | |
name: Evaluate the Nix shell | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Install Nix β | |
uses: DeterminateSystems/nix-installer-action@v4 | |
- name: Run the Magic Nix Cache π | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Evaluate the Nix shell | |
run: nix develop -c "true" |