Skip to content

Merge pull request #159 from Toqozz/update_flake_lock_action #71

Merge pull request #159 from Toqozz/update_flake_lock_action

Merge pull request #159 from Toqozz/update_flake_lock_action #71

Workflow file for this run

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