-
-
Notifications
You must be signed in to change notification settings - Fork 803
36 lines (34 loc) · 822 Bytes
/
nix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Nix
on:
pull_request:
branches:
- main
paths:
- '**/*.rs'
- '.github/workflows/nix.yml'
- 'nix/**'
workflow_dispatch:
push:
branches:
- main
paths:
- '**/*.rs'
- '.github/workflows/nix.yml'
- 'nix/**'
jobs:
lints:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Cache build artifacts
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check flake inputs
uses: DeterminateSystems/flake-checker-action@main
with:
flake-lock-path: ./nix/flake.lock
ignore-missing-flake-lock: false
- name: Build default package
run: nix build ./nix