2023-03-31 01:59:46 -06:00
|
|
|
# Verify the Nix build is working
|
|
|
|
# Failures will usually occur due to an out of date Rust version
|
|
|
|
# That can be updated to the latest version in nixpkgs-unstable with `nix flake update`
|
|
|
|
name: Nix
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3.5.0
|
|
|
|
- uses: cachix/install-nix-action@v20
|
|
|
|
|
|
|
|
- name: Run nix flake check
|
|
|
|
run: nix flake check --print-build-logs
|
|
|
|
|
2023-07-27 02:34:13 -06:00
|
|
|
build-test:
|
2023-03-31 01:59:46 -06:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3.5.0
|
|
|
|
- uses: cachix/install-nix-action@v20
|
|
|
|
|
|
|
|
- name: Run nix build
|
|
|
|
run: nix build --print-build-logs
|