2023-12-07 03:27:52 +03:00
|
|
|
name: Nix
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- '**/*.rs'
|
|
|
|
- '.github/workflows/nix.yml'
|
|
|
|
- 'nix/**'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- '**/*.rs'
|
|
|
|
- '.github/workflows/nix.yml'
|
|
|
|
- 'nix/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lints:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2024-01-17 19:52:53 +03:00
|
|
|
- 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
|
2024-01-26 11:09:26 +03:00
|
|
|
run: nix build ./nix
|