2023-03-31 09:59:46 +02: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 ]
|
2024-06-24 09:18:37 +02:00
|
|
|
paths-ignore:
|
|
|
|
- 'ui/**'
|
2023-03-31 09:59:46 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
2024-06-24 09:18:37 +02:00
|
|
|
paths-ignore:
|
|
|
|
- 'ui/**'
|
2023-03-31 09:59:46 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-07-15 11:37:35 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-07-15 11:52:40 +02:00
|
|
|
- uses: cachix/install-nix-action@V27
|
2023-03-31 09:59:46 +02:00
|
|
|
|
|
|
|
- name: Run nix flake check
|
|
|
|
run: nix flake check --print-build-logs
|
|
|
|
|
2023-07-27 10:34:13 +02:00
|
|
|
build-test:
|
2023-03-31 09:59:46 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-07-15 11:37:35 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-07-15 11:52:40 +02:00
|
|
|
- uses: cachix/install-nix-action@V27
|
2023-03-31 09:59:46 +02:00
|
|
|
|
|
|
|
- name: Run nix build
|
|
|
|
run: nix build --print-build-logs
|