-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
blockio-uring.cabal
Outdated
@@ -1,4 +1,4 @@ | |||
cabal-version: >=1.10 | |||
cabal-version: 3.4 |
There was a problem hiding this comment.
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
?
blockio-uring.cabal
Outdated
build-depends: base, array, unix | ||
build-depends: base >= 4.16 && < 4.20 | ||
, array ^>= 0.5 | ||
, unix ^>= 2.8 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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