Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate the Haskell code emitted from agda-spec into CI #1344

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

geo2a
Copy link
Contributor

@geo2a geo2a commented Dec 13, 2024

Fixes #1343
Note that this PR targets the branch of #1315 and not main.

This PR adds Nix derivations that:

  • generate Haskell code from the Agda spec using the Makefile-based build system in ./docs/agda-spec/
  • wrap the generated code into Nix using cabal2nix

In combination with the existing set-up in flake.nix, we can now build the generated code and run it's tests using the following flake output:

nix build .#hydraJobs.x86_64-linux.native.agda-spec.hsExe

which will also be done in CI, i.e. see the logs from testing this PR

some other jobs, e.g. the linting of the unit tests for the generated code, are failing, but we can fix those in #1315

@geo2a geo2a marked this pull request as ready for review December 13, 2024 11:32
@geo2a geo2a requested a review from javierdiaz72 December 13, 2024 11:32
@geo2a geo2a force-pushed the geo2a/issue-1312-agda-spec branch from 576bde3 to a9e2699 Compare December 13, 2024 11:36
@geo2a geo2a linked an issue Dec 13, 2024 that may be closed by this pull request
3 tasks
Copy link
Contributor

@javierdiaz72 javierdiaz72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@geo2a geo2a merged commit 8bd9283 into javierdiaz72/agda-spec-to-haskell Dec 16, 2024
12 of 16 checks passed
@geo2a geo2a deleted the geo2a/issue-1312-agda-spec branch December 16, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate the Haskell code generate from agda-spec into the build system and CI
2 participants