Skip to content

Commit

Permalink
Detect changes to generated Haskell files (#28)
Browse files Browse the repository at this point in the history
This pull request adds a check to CI that tests whether the generated
`.hs` files have changed.
  • Loading branch information
HeinrichApfelmus committed May 3, 2024
2 parents ccc97f3 + 524c4cf commit aa78c9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:
- label: "Build agda2hs"
depends_on: linux-nix
command: |
${nix} --command bash -c 'just haskell && just build0'
${nix} --command bash -c 'just ci'
agents:
system: ${linux}
env:
Expand Down
7 changes: 5 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
default:
just --list

clean:
find . -name "*.agdai" -type f -delete

haskell:
cd lib/customer-deposit-wallet-pure/ && ./generate-haskell.sh

build0:
cabal build -v0 -O0 -j all

clean:
find . -name "*.agdai" -type f -delete
ci:
just haskell && git diff --exit-code && just build0

0 comments on commit aa78c9b

Please sign in to comment.