diff options
| author | Patrick Jackson <patrick@jackson.dev> | 2023-03-31 01:59:46 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-31 08:59:46 +0100 |
| commit | 3552c7e0d315f3c6d2b4b2043a3fabe7cc762e7a (patch) | |
| tree | f04cb2dfa89647ca331ddac1ee1cfa00d4427635 /.github | |
| parent | fix: allow nix package to fetch dependencies from git (#832) (diff) | |
| download | atuin-3552c7e0d315f3c6d2b4b2043a3fabe7cc762e7a.zip | |
feat: add github action to test the nix builds (#833)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/nix.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 00000000..3e5483bd --- /dev/null +++ b/.github/workflows/nix.yml @@ -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/checkout@v3.5.0 + - 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/checkout@v3.5.0 + - uses: cachix/install-nix-action@v20 + + - name: Run nix build + run: nix build --print-build-logs |
