Skip to content
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

chore: Adapt meta.yml to v8.20 & Add dedicated CI test using coqorg/base #91

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/docker-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# - cron: '0 4 * * *'
push:
branches:
- master
- v8.20
pull_request:
branches:
- '**'
Expand All @@ -18,20 +18,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
coq_version:
- '8.20.dev'
image:
- 'coqorg/coq:dev'
# we can't use coqorg/coq images to test bignums
# since these images already include coq-bignums
- 'coqorg/base:4.13.1-flambda'
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: coq-community/docker-coq-action@v1
with:
opam_file: 'coq-bignums.opam'
custom_image: ${{ matrix.image }}
install: |
startGroup "Install dependencies"
# sudo apt-get update -y -q
opam remove -y coq-bignums # remove coq-bignums already in image
opam pin add -n -y -k path $PACKAGE $WORKDIR
startGroup "Install coq and dependencies"
sudo apt-get update -y -q
opam remove -y coq-bignums || true # remove coq-bignums if ever in image
opam repository add --all-switches --set-default coq-extra-dev https://coq.inria.fr/opam/extra-dev # docker-coq
opam repository add --all-switches --set-default coq-core-dev https://coq.inria.fr/opam/core-dev # docker-coq
opam pin add -n -y -k version coq ${{ matrix.coq_version }} # docker-coq
opam pin add -n -y -k path $PACKAGE.dev $WORKDIR
opam update -y
opam install --confirm-level=unsafe-yes -j 2 $PACKAGE --deps-only
endGroup
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Follow the instructions on https://github.com/coq-community/templates to regener
[![Code of Conduct][conduct-shield]][conduct-link]
[![Zulip][zulip-shield]][zulip-link]

[docker-action-shield]: https://github.com/coq-community/bignums/actions/workflows/docker-action.yml/badge.svg?branch=master
[docker-action-shield]: https://github.com/coq-community/bignums/actions/workflows/docker-action.yml/badge.svg?branch=v8.20
[docker-action-link]: https://github.com/coq-community/bignums/actions/workflows/docker-action.yml

[contributing-shield]: https://img.shields.io/badge/contributions-welcome-%23f7931e.svg
Expand Down
7 changes: 5 additions & 2 deletions coq-bignums.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# This file was generated from `meta.yml`, please do not edit manually.
# Follow the instructions on https://github.com/coq-community/templates to regenerate.

opam-version: "2.0"
maintainer: "[email protected]"
version: "dev"
version: "8.20.dev"

homepage: "https://github.com/coq-community/bignums"
dev-repo: "git+https://github.com/coq-community/bignums.git"
Expand All @@ -19,7 +22,7 @@ install: [
]
depends: [
"ocaml"
"coq" {= "dev"}
"coq" {>= "8.20" & < "8.21~"}
]

tags: [
Expand Down
8 changes: 4 additions & 4 deletions meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ shortname: bignums
organization: coq-community
community: true
action: true
branch: master
branch: v8.20

synopsis: >-
Bignums, the Coq library of arbitrarily large numbers
Expand All @@ -28,7 +28,7 @@ maintainers:

opam-file-maintainer: [email protected]

opam-file-version: dev
opam-file-version: 8.20.dev

license:
fullname: GNU Lesser General Public License v2.1
Expand All @@ -41,10 +41,10 @@ supported_ocaml_versions:

supported_coq_versions:
text: master (use the corresponding branch or release for other Coq versions)
opam: '{= "dev"}'
opam: '{>= "8.20" & < "8.21~"}'

tested_coq_opam_versions:
- version: dev
- version: 8.20

ci_cron_schedule: '0 4 * * *'

Expand Down
Loading