Skip to content

Commit

Permalink
Add github action to check the nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed May 2, 2024
1 parent 42a686c commit 6208076
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Run code checks
name: Run code checks with different build tools

on:
- push
- pull_request

jobs:

check:
poetry:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -28,3 +28,15 @@ jobs:
- name: Run check "${{ matrix.check }}"
run: "${{ matrix.check }}"

nix-flake:
runs-on: ubuntu-latest

steps:
- name: Install Nix
uses: cachix/install-nix-action@v22

- uses: actions/checkout@v4

- name: Build the nix derivation (also runs the tests)
run: nix build --print-build-logs

0 comments on commit 6208076

Please sign in to comment.