Skip to content

Commit

Permalink
ci-nix github action
Browse files Browse the repository at this point in the history
* Fixes #9, missing build with nix in CI

* Once the project grows, we should select better, or a default, build
  targets
  • Loading branch information
choener committed Dec 18, 2024
1 parent 992309b commit 7f2887f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci-nix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# https://github.com/marketplace/actions/install-nix

name: "ci-nix"
on:
pull_request:
push:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v27

# Possibly need to cache cabal.
- name: Cache .cabal
uses: actions/cache@v3
with:
path: ${{ steps.cabal-setup.outputs.cabal-store }}
key: cabal-${{ hashFiles('cabal.project') }}

# We currently do not have a default target
- run: nix build .#wst-poc
- run: nix flake check

0 comments on commit 7f2887f

Please sign in to comment.