0.10.6 #64
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 | |
on: [pull_request, push] | |
jobs: | |
nix-flake: | |
name: Nix packaging (flake) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v17 | |
- name: Flake check | |
run: nix flake check --no-update-lock-file --show-trace --verbose | |
- name: Flake build | |
run: nix build --no-update-lock-file --show-trace --verbose --print-build-logs | |
nix-legacy: | |
name: Nix packaging (legacy) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# flake-compat doesn't support shallow repo. | |
with: | |
fetch-depth: 0 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v17 | |
with: | |
nix_path: nixpkgs=channel:nixpkgs-unstable | |
- name: Nix build | |
run: nix-build |