-
Notifications
You must be signed in to change notification settings - Fork 40
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
Port CI from Travis to GH Actions #237
Conversation
This comment has been minimized.
This comment has been minimized.
Oh, nevermind, I forgot to call |
I think fixing the action is beyond the scope of my expertise, the 4.07.1+32bit, js-dune build is failing with
|
Thanks a lot @JasonGross , this is super useful! Indeed the 32-bit version of gmp is needed for the js_of_ocaml build [as JS cannot efficiently represent 64 bit ints] , but actually it is very likely that the only thing the runners need is |
Glad to help! Indeed, I eventually stumbled on that and things now build: https://github.com/JasonGross/coq-serapi/actions/runs/753193729 Let me squash the commits. Btw, do you have a preference between doing |
Should be ready for merge now |
Thanks a lot @JasonGross ; I'm gonna do a review but feel free to merge yourself! One question tho: shouldn't the CI display the checks in this PR? Is there something else we need to activate? |
- v8.10 | ||
- v8.11 | ||
- v8.12 | ||
- v8.13 |
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.
Actually this was added to the travis file to avoid double-building of pull requests that live in this particular repos, not sure this is still a problem with github actions.
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.
I think in fact PRs would get double-built, but I'm also not sure that's such a problem? What's the bad thing that happens if they get double-built?
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.
Nothing bad, just a waste of runners (for Travis these were quite limited), so keeping the branch then sounds good.
extra-opam: coq.8.13.0 js_of_ocaml js_of_ocaml-lwt zarith_stubs_js | ||
- ocaml-version: 4.11.1 | ||
test-target: test | ||
extra-opam: dune |
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.
Shouldn't this be captured by the opam install --deps-only
below?
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.
Idk, I was just copying the Travis script
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.
Ok, I'll revisit once the checks actually run.
pushd math-comp/mathcomp/ssreflect | ||
make | ||
make install | ||
popd |
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.
Note: this will likely stop working soon if math-comp is updated to use hiearchy-builder, as it will then require a huge dep chain that is not feasible to manage by hand. So if that happens we will have to either split the math-comp tests, or maybe just use the Coq dev package so we can install everything using opam; when this script was first developed there were some issues with opam, I dunno if things are better now.
You need GH actions the base branch (or main branch?) to enable GH actions on PRs to the repo. Seems like a reasonable security principle, though I'm not sure it's necessary. You can check the actions tab on my fork, where I synced this branch to v8.13 |
I'm inclined to merge this as-is and let you improve the script in future commits, if that sounds good to you? (I'm a bit short on time to improve it currently.) |
Sounds good, thanks a lot @JasonGross this saved me a huge amount of time. |
@ejgallego How important is it that it's
libgmp-dev:i386
rather thanlibgmp-dev
? The former doesn't seem to exist on the GH Actions runners.Currently still working on getting this building, but I figured I'd submit it as a draft since I don't have much more time to work on it, and I think it's nearly ready.