-
Notifications
You must be signed in to change notification settings - Fork 1
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
Further explanation of build-coq-demo.yml file #10
Comments
Hi @zunction, thanks for opening this issue!
Good point: this just comes from the fact the combination (coq.dev, ocaml.4.09-flambda) is not rebuilt anymore in docker-coq
Sure. All jobs pull a prebuilt image, the main difference being that:
So in a typical CI configuration, one should choose to include only one Note also that the (ocaml, coq) specification can be viewed as a Facade. Namely: build:
runs-on: ubuntu-latest
strategy:
matrix:
coq_version:
- '8.11'
- dev
ocaml_version:
- '4.07-flambda'
- '4.11-flambda'
steps:
- uses: actions/checkout@v2
- uses: coq-community/docker-coq-action@v1
with:
opam_file: 'coq-demo.opam'
coq_version: ${{ matrix.coq_version }}
ocaml_version: ${{ matrix.ocaml_version }} is equivalent to: build:
runs-on: ubuntu-latest
strategy:
matrix:
image:
- 'coqorg/coq:8.11-ocaml-4.07-flambda'
- 'coqorg/coq:8.11-ocaml-4.11-flambda'
- 'coqorg/coq:dev-ocaml-4.07-flambda'
- 'coqorg/coq:dev-ocaml-4.11-flambda'
steps:
- uses: actions/checkout@v2
- uses: coq-community/docker-coq-action@v1
with:
opam_file: 'coq-demo.opam'
custom_image: ${{ matrix.image }} but indeed I realize that some of my remarks above could be integrated somewhere in the repo, maybe in the README…
Yes, definitely. Either these additional dependencies are already specified in your Or you have some external dependencies, such as Debian packages or so, that you may want to install as well. In this case, you could write something like: before_install: |
startGroup "Print opam config"
opam config list; opam repo list; opam list
endGroup
startGroup "Install Debian packages"
sudo apt-get update -y -q
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -q --no-install-recommends emacs
endGroup Let me know if you have other questions.
Thanks! best wishes |
Hi @erikmd, thanks for replying with very clear explanations which is very helpful for my understanding :) I'm now trying to use coq github actions to test my code, which uses the following (when I do With these requirements, I tried using the image
to facilitate
to make However, my action then runs into an error with the following message:
From my many attempts to make it work, it seems to me that the requirement of Would you be able to provide suggestions/advise on the problem I'm encountering? Many thanks!! |
Hi @zunction, indeed it seems that coq-deriving is marked (§1) as incompatible with So a simple fix should just consist in replacing Extra remarks:
|
Thanks for this coq github action demo which helps entry users like me to get started by cloning your repository to test things out. With your template, I added a simple text file and push the updates up to my remote repository to see how github actions run (realised that when I used your template, github actions also get triggered in the initial commit).
In the CI workflow, I encountered an error when the jobs involving
4.09-flambda
with the error:Would you be able to explain this error?
And then further explain the different jobs (
build
andmathcomp
) in build-coq-demo.yml? It seems to mebuild
is installingcoq
versions8.11
anddev
on the OCaml versions4.07, 4.09-flambda
andmathcomp
just pulls themathcomp:1.10.0-coq-8.10, 8.11
images from docker hub.If we were to use the docker-mathcomp images, would it be possible for us to run a job to install other libraries, such as deriving in the image?
Many thanks and a happy new year!
The text was updated successfully, but these errors were encountered: