Skip to content

Commit

Permalink
feat: add github action to test the nix builds (atuinsh#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcuru authored Mar 31, 2023
1 parent 662f2b8 commit 3552c7e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Verify the Nix build is working
# Failures will usually occur due to an out of date Rust version
# That can be updated to the latest version in nixpkgs-unstable with `nix flake update`
name: Nix
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v20

- name: Run nix flake check
run: nix flake check --print-build-logs

build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v20

- name: Run nix build
run: nix build --print-build-logs

0 comments on commit 3552c7e

Please sign in to comment.