diff --git a/.github/workflows/docker-action.yml b/.github/workflows/docker-action.yml index 0dd6297..89d9285 100644 --- a/.github/workflows/docker-action.yml +++ b/.github/workflows/docker-action.yml @@ -19,7 +19,7 @@ jobs: image: - 'coqorg/coq:8.9' - 'coqorg/coq:8.11' - - 'coqorg/coq:8.12' + - 'coqorg/coq:8.12-ocaml-4.10-flambda' - 'coqorg/coq:8.13' - 'coqorg/coq:8.14' - 'coqorg/coq:8.15' @@ -27,6 +27,7 @@ jobs: - 'coqorg/coq:8.17' - 'coqorg/coq:8.18' - 'coqorg/coq:8.19' + - 'coqorg/coq:8.20' - 'coqorg/coq:dev' fail-fast: false steps: @@ -37,6 +38,11 @@ jobs: with: opam_file: 'coq-ext-lib.opam' custom_image: ${{ matrix.image }} + before_install: | + startGroup "Setup and print opam config" + opam repo -a --set-default add coq-extra-dev https://coq.inria.fr/opam/extra-dev + opam config list; opam repo list; opam list + endGroup after_script: | startGroup "Test dependants" PINS=$(opam list -s --pinned --columns=package | xargs | tr ' ' ,) @@ -50,7 +56,7 @@ jobs: set -o pipefail # recommended if the script uses pipes startGroup "Generate Coqdoc" - make -j`nproc` coqdoc + make -j`nproc` coqdoc || echo "Failed to generate Coqdoc" endGroup before_script: | startGroup "Workaround permission issue" diff --git a/coqdocjs b/coqdocjs index 5740184..d000c33 160000 --- a/coqdocjs +++ b/coqdocjs @@ -1 +1 @@ -Subproject commit 57401849fffb24500c078973a8382dd3086fd2bf +Subproject commit d000c33bf04e89b6d296cd7afc6d782395d68777 diff --git a/meta.yml b/meta.yml index 4262e2a..5c883de 100644 --- a/meta.yml +++ b/meta.yml @@ -5,6 +5,7 @@ opam_name: coq-ext-lib organization: coq-community community: true action: true +ci_extra_dev: true ci_test_dependants: true submodule: true @@ -34,7 +35,7 @@ supported_coq_versions: tested_coq_opam_versions: - version: '8.9' - version: '8.11' - - version: '8.12' + - version: '8.12-ocaml-4.10-flambda' - version: '8.13' - version: '8.14' - version: '8.15' @@ -42,6 +43,7 @@ tested_coq_opam_versions: - version: '8.17' - version: '8.18' - version: '8.19' + - version: '8.20' - version: 'dev' make_target: theories @@ -52,7 +54,7 @@ action_appendix: |2- set -o pipefail # recommended if the script uses pipes startGroup "Generate Coqdoc" - make -j`nproc` coqdoc + make -j`nproc` coqdoc || echo "Failed to generate Coqdoc" endGroup before_script: | startGroup "Workaround permission issue" @@ -67,6 +69,7 @@ action_appendix: |2- if: ${{ always() }} run: sudo chown -R 1001:116 . - uses: actions/upload-artifact@v4 + continue-on-error: true with: name: coqdoc path: html diff --git a/theories/Structures/CoMonadLaws.v b/theories/Structures/CoMonadLaws.v index 9fdf761..da5717f 100644 --- a/theories/Structures/CoMonadLaws.v +++ b/theories/Structures/CoMonadLaws.v @@ -10,7 +10,7 @@ Section CoMonadLaws. Variable m : Type -> Type. Variable C : CoMonad m. - Class CoMonadLaws : Type := + Class CoMonadLaws := { extend_extract: forall (A B:Type), extend (B:=A) extract = id ; diff --git a/theories/Structures/Foldable.v b/theories/Structures/Foldable.v index b8423ad..b7ca3f9 100644 --- a/theories/Structures/Foldable.v +++ b/theories/Structures/Foldable.v @@ -24,7 +24,7 @@ Section foldable. Variable Add : A -> T -> T -> Prop. - Class FoldableOk : Type := + Class FoldableOk := { fold_ind : forall m (M : Monoid m) (ML : MonoidLaws M) (P : m -> Prop) f u, P (monoid_unit M) -> (forall x y z, diff --git a/theories/Structures/MonadLaws.v b/theories/Structures/MonadLaws.v index 3be836d..5cbe229 100644 --- a/theories/Structures/MonadLaws.v +++ b/theories/Structures/MonadLaws.v @@ -39,7 +39,7 @@ Section MonadLaws. Section with_state. Context {S : Type}. - Class MonadStateLaws (MS : MonadState S m) : Type := + Class MonadStateLaws (MS : MonadState S m) := { get_put : bind get put = ret tt :> m unit ; put_get : forall x : S, bind (put x) (fun _ => get) = bind (put x) (fun _ => ret x) :> m S @@ -51,7 +51,7 @@ Section MonadLaws. bind get (fun _ => aM) = aM }. - Class MonadReaderLaws (MR : MonadReader S m) : Type := + Class MonadReaderLaws (MR : MonadReader S m) := { ask_local : forall f : S -> S, local f ask = bind ask (fun x => ret (f x)) ; local_bind : forall {A B} (aM : m A) (f : S -> S) (g : A -> m B), @@ -64,7 +64,7 @@ Section MonadLaws. End with_state. - Class MonadZeroLaws (MZ : MonadZero m) : Type := + Class MonadZeroLaws (MZ : MonadZero m) := { bind_zero : forall {A B} (f : A -> m B), bind mzero f = mzero }. diff --git a/theories/Structures/Monoid.v b/theories/Structures/Monoid.v index b9d574b..4cc7ac2 100644 --- a/theories/Structures/Monoid.v +++ b/theories/Structures/Monoid.v @@ -13,7 +13,7 @@ Section Monoid. ; monoid_unit : S }. - Class MonoidLaws@{} (M : Monoid) : Type := + Class MonoidLaws@{} (M : Monoid) := { monoid_assoc : Associative M.(monoid_plus) eq ; monoid_lunit : LeftUnit M.(monoid_plus) M.(monoid_unit) eq ; monoid_runit : RightUnit M.(monoid_plus) M.(monoid_unit) eq