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

Set up some GHA CI #4

Merged
merged 4 commits into from
Mar 7, 2024
Merged

Set up some GHA CI #4

merged 4 commits into from
Mar 7, 2024

Conversation

jorisdral
Copy link
Collaborator

@jorisdral jorisdral commented Mar 6, 2024

The workflow file is just a copy of IntersectMBO/lsm-tree@b0939ea to get some basic CI setup going. Since compilation was failing on some GHC versions, I did some maintenance on the cabal file and the benchmark code to get everything compiling.

Once this PR is merged, we can set the status checks to be required before merging into main

@jorisdral jorisdral requested a review from dcoutts March 6, 2024 16:03
@jorisdral jorisdral self-assigned this Mar 6, 2024
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 3.4
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@dcoutts did you pick >=1.10 for a reason, or can we use 3.4?

build-depends: base, array, unix
build-depends: base >= 4.16 && < 4.20
, array ^>= 0.5
, unix ^>= 2.8
Copy link
Collaborator Author

@jorisdral jorisdral Mar 6, 2024

Choose a reason for hiding this comment

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

If we want to support earlier versions of unix, then we'll have to add some CPP pragmas to each use of openFd, since it had a breaking change in unix-2.8.0.0

Since `unix-2.8.0.0`, `openFd` has one fewer
argument. By constraining `unix` to `^>=2.8`, we
don't have to add any CPP pragmas to make
compilation work. If we do want to support
`<=2.7`, then we can add the CPP pragmas later.
Copy link
Collaborator Author

@jorisdral jorisdral Mar 6, 2024

Choose a reason for hiding this comment

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

@dcoutts I formatted the file using cabal-fmt in the last commit. If you prefer I undo the formatting, then I can remove just the last commit. If you want to see just the changes to the cabal file sans formatting, then you can disable showing the last commit in the diff

Copy link
Member

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

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

LGTM

@dcoutts dcoutts merged commit f483f95 into main Mar 7, 2024
4 checks passed
@jorisdral jorisdral deleted the jdral/gha-ci branch March 7, 2024 10:49
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.

2 participants