Skip to content

Commit

Permalink
ci: add nix build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jun 17, 2024
1 parent 6e13853 commit 11231af
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: "Nix build"
on:
pull_request:
push:
workflow_call:
jobs:
nix-flake-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v10
- uses: cachix/cachix-action@v12
with:
name: neorocks
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check -L --accept-flake-config
build-devShell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@v10
- uses: cachix/cachix-action@v12
with:
name: neorocks
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build .#devShells.x86_64-linux.default -L --accept-flake-config

0 comments on commit 11231af

Please sign in to comment.