-
Notifications
You must be signed in to change notification settings - Fork 9
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
allow specifying the Docker repo for 'tested_coq_opam_versions' for use in .travis.yml #57
Conversation
53a5d54
to
467c9b3
Compare
The linter seems to be unhappy, but it doesn't tell my why it's unhappy: I used the modified template to generate the current CI setup for |
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.
The linter seemingly fails because ref.yml
contains tabs, can you replace them with spaces?
Otherwise, looks good for .travis.yml
, but note that it currently will not work for config.yml
, i.e., for the Coq Docker GitHub Action. I suggest we immediately open an issue about this when this PR is merged, since I believe it will require input from @erikmd. It looks like config.yml
currently can only use one Docker repo (currently fixed to coqorg/coq
).
467c9b3
to
e91c735
Compare
I fixed the spaces. If I understand correctly then |
the README does not mention the E.g. you could update your PR and write something like this (without loss of expressivity) for the jobs:
build:
# the OS must be GNU/Linux to be able to use the docker-coq-action
runs-on: ubuntu-latest
strategy:
matrix:
coq_version:
{{# tested_coq_opam_versions }}
- '{{ version }}'
{{/ tested_coq_opam_versions }}
fail-fast: false
steps:
- uses: actions/checkout@v2
{{# submodule }}
- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@2.1.1
{{/ submodule }}
- uses: coq-community/docker-coq-action@v1
with:
opam_file: '{{ opam_name }}{{^ opam_name }}coq-{{ shortname }}{{/ opam_name }}.opam'
{{! The last-but-one interpolation changes delimiters to avoid interpreting the last one as mustache syntax. }}
custom_image: {{ repo }}{{^ repo }}coqorg/coq{{/ repo }}{{=<% %>=}}:${{ matrix.coq_version }} |
actually config.yml is the CircleCI config, not the GitHub action config. |
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.
Beyond my previous comments:
it also seems the ref.yml
documentation spec should be further updated (the used: _
field is missing)
Thanks for catching that and for the insights on However, I don't think we should let that prevent merging of this PR. |
@palmskog OK I don't mind. |
Good catch again. @chdoc can you take care of this? I can merge after that when linting passes. |
I'm not sure how this |
This is at least my interpretation of the |
e91c735
to
76e2c7f
Compare
This PR implements the enhancement proposed in #39