-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update for Dune-Coq 0.8 and Coq 8.17 #7
base: v8.16
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,29 @@ | ||
name: CI | ||
name: Docker CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- v8.16 | ||
- 'v8.17+0.8' | ||
pull_request: | ||
branches: | ||
- v8.16 | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
# the OS must be GNU/Linux to be able to use the docker-coq-action | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ocaml-compiler: [4.09.x, 4.14.x] | ||
coq-version: [8.16+rc1] | ||
env: | ||
NJOBS: "2" | ||
OPAMJOBS: "2" | ||
OPAMROOTISOK: "true" | ||
OPAMYES: "true" | ||
runs-on: ubuntu-latest | ||
|
||
image: | ||
- 'coqorg/coq:8.17' | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up OCaml ${{ matrix.ocaml-compiler }} | ||
uses: avsm/setup-ocaml@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: coq-community/docker-coq-action@v1 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
dune-cache: true | ||
- name: Install Coq | ||
run: | | ||
eval $(opam env) | ||
opam repos add coq-released http://coq.inria.fr/opam/released | ||
opam repos add coq-core-dev http://coq.inria.fr/opam/core-dev | ||
opam install coq.${{ matrix.coq-version }} | ||
- name: Display OPAM Setup | ||
run: | | ||
eval $(opam env) | ||
opam list | ||
- name: Test Template | ||
run: | | ||
eval $(opam env) | ||
dune build --display=short | ||
opam_file: 'coq-my-plugin.opam' | ||
custom_image: ${{ matrix.image }} | ||
before_install: | | ||
startGroup "Print opam config and unpin dune" | ||
opam config list; opam repo list; opam list; opam pin remove dune -y | ||
endGroup |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(lang dune 2.9) | ||
(using coq 0.3) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While we are at it we can use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem with opam file generation is that it brings another level of indirection. I think it's easier if we just keep the opam files manual... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leaving the opam files manual is OK but has quite a few downsides too, in particular newer dune offers nice stuff if you declare the packages on On other other hand, I can't see see any problem in the workflow with automatic file generation, what problems do you foresee? I don't understand what kind of indirection you refer to. In fact the only reason that opam files need to be committed to the repository is due to "pinning", which is not yet smart enough to generate them on the fly. If you don't care about pinning you don't need to commit the .opam files and you can just ignore them, as |
||
(lang dune 3.8) | ||
(using coq 0.8) | ||
(name my-plugin) |
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.
Maybe better to use a more recent OCaml version? I suggest 4.14.1
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.
But 4.14.1 isn't required, right? I thought we keep this the lower bound.
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.
No it is not. That's a good question about what versions we put here. In general it will depend on the OCaml features the plugin writer uses.
Note also that 8.17.0 is not either a lower bound here, as the template works fine with 8.16.x
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.
As dicussed in Zulip, generally a template has a range of versions that it is suitable for, so we may want just to document the ranges users can do here.
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.
This PR doesn't work on Coq 8.16 since I removed
-rectypes
.