Skip to content

Commit

Permalink
ci(flake): add nix github action
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Hoyer <[email protected]>
  • Loading branch information
haraldh committed Mar 27, 2024
1 parent 7d9edac commit a2c248a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Nix checks

on:
merge_group:
pull_request:
push:
branches:
- main
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
RUST_LOG: "debug"
RUSTFLAGS: "-C debuginfo=0"

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check -L --show-trace --keep-going --impure

build:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: nix build
run: nix run nixpkgs#nixci -- -- --impure

- name: nix check overlay
run: cd test-overlay && nix build --no-write-lock-file -L .#kitsune

0 comments on commit a2c248a

Please sign in to comment.