Add support for Github actions-based CI #20322
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for CI using github actions, following a discussion in #20271 (comment)
Example of a full run: https://github.com/toots/opam-repository/actions/runs/1620485627
Implementation details
ocaml/setup-ocaml@v2
and etc. No need to maintain a matrix of docker images1m40s
opensus
image was buggy and had to be droppedopam
build shipped byocaml/setup-ocaml@v2
linux
/mac
,amd64
) are not supported. Windows could be but the dance between officialopam
packages andwindows
packages does seem to make this painful.extra
are supported based on availableocaml-option-*
packages.Overall, this seems to be an interesting option as this is free and scales well. It could be nice to have it along the official CI to see how it behaves and, perhaps, use it to alleviate some of the pressure on the current CI.