Skip to content

Commit

Permalink
Release changes 8.15 (#731)
Browse files Browse the repository at this point in the history
* coqdocjs

* coqdocjs

* Release changes (#729)

* Set version in opam files

* Fix equations dependency

* Fix build.yml

* Fix opam files and add make-opam-files script

* Update version bounds

* Back to 8.16.dev versions

* Opam make tests (#730)

*  Make test-suite and examples also installable from the opam package

* Test the "with-test" targets of the opam file

* Plugin-demo building

* Missing MetaCoq prefix in test-suite/plugin

* The opam files actually require bash

* Missing includes for local build of examples/test-suite

* Fix opam build

* Fix configure.h

Co-authored-by: Yannick Forster <[email protected]>
  • Loading branch information
mattam82 and yforster authored Jul 5, 2022
1 parent f170ec6 commit b9f10e4
Show file tree
Hide file tree
Showing 25 changed files with 593 additions and 41 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
sudo chown -R coq:coq . # <--
opam exec -- ocamlfind list
endGroup
before_install: |
startGroup "Print opam config"
opam config list; opam repo list; opam list
endGroup
script: |
startGroup "Build project"
opam exec -- ./configure.sh --enable-${{matrix.target}}
Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,13 @@ erasure/src/eEnvMap.ml
erasure/src/eEnvMap.mli
erasure/src/eGlobalEnv.mli
erasure/src/eGlobalEnv.ml
Makefile.conf
test-suite/plugin-demo/src/META.coq-metacoq-demo-plugin
pcuic/src/META.coq-metacoq-pcuic
examples/_CoqProject
test-suite/_CoqProject
examples/metacoq-config
test-suite/metacoq-config
test-suite/plugin-demo/_CoqProject
test-suite/plugin-demo/_PluginProject
test-suite/plugin-demo/metacoq-config
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ uninstall: all
$(MAKE) -C translations uninstall

html: all
"coqdoc" -toc -utf8 -interpolate -l -html \
"coqdoc" --multi-index -toc -utf8 -interpolate -html \
--with-header ./html/resources/header.html --with-footer ./html/resources/footer.html \
-R template-coq/theories MetaCoq.Template \
-R pcuic/theories MetaCoq.PCUIC \
-R safechecker/theories MetaCoq.SafeChecker \
Expand Down Expand Up @@ -104,7 +105,7 @@ ci-quick:

ci-opam:
# Use -v so that regular output is produced
opam install -v -y .
opam install --with-test -v -y .
opam remove -y coq-metacoq coq-metacoq-template

checktodos:
Expand Down
15 changes: 15 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ then
SAFECHECKER_DEPS="-R ../pcuic/theories MetaCoq.PCUIC"
ERASURE_DEPS="-R ../safechecker/theories MetaCoq.SafeChecker"
TRANSLATIONS_DEPS=""
EXAMPLES_DEPS="-I ../safechecker/src -I ../erasure/src -R ../erasure/theories MetaCoq.Erasure"
TEST_SUITE_DEPS="-I ../safechecker/src -I ../erasure/src -R ../erasure/theories MetaCoq.Erasure"
PLUGIN_DEMO_DEPS="-I ../../template-coq/build -R ../../template-coq/theories MetaCoq.Template -I ../../template-coq/"
echo "METACOQ_CONFIG = local" > Makefile.conf
else
echo "Building MetaCoq globally (default)"
# The safechecker and erasure plugins depend on the extractable template-coq plugin
Expand All @@ -30,17 +34,28 @@ then
SAFECHECKER_DEPS=""
ERASURE_DEPS=""
TRANSLATIONS_DEPS=""
EXAMPLES_DEPS=""
TEST_SUITE_DEPS=""
PLUGIN_DEMO_DEPS="-I ${COQLIB}/user-contrib/MetaCoq/Template"
echo "METACOQ_CONFIG = global" > Makefile.conf
fi

echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > pcuic/metacoq-config
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > safechecker/metacoq-config
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > erasure/metacoq-config
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > translations/metacoq-config
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > examples/metacoq-config
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > test-suite/metacoq-config
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > test-suite/plugin-demo/metacoq-config

echo ${PCUIC_DEPS} >> pcuic/metacoq-config
echo ${PCUIC_DEPS} ${SAFECHECKER_DEPS} >> safechecker/metacoq-config
echo ${PCUIC_DEPS} ${SAFECHECKER_DEPS} ${ERASURE_DEPS} >> erasure/metacoq-config
echo ${PCUIC_DEPS} ${TRANSLATIONS_DEPS} >> translations/metacoq-config
echo ${PCUIC_DEPS} ${SAFECHECKER_DEPS} ${ERASURE_DEPS} ${TRANSLATIONS_DEPS} ${EXAMPLES_DEPS} >> examples/metacoq-config
echo ${PCUIC_DEPS} ${SAFECHECKER_DEPS} ${ERASURE_DEPS} ${TRANSLATIONS_DEPS} ${TEST_SUITE_DEPS} >> test-suite/metacoq-config
echo ${PLUGIN_DEMO_DEPS} >> test-suite/plugin-demo/metacoq-config

else
echo "Error: coqc not found in path"
fi
2 changes: 1 addition & 1 deletion coq-metacoq-erasure.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ authors: ["Abhishek Anand <[email protected]>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
["bash" "./configure.sh"]
[make "-j" "%{jobs}%" "-C" "erasure"]
]
install: [
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq-pcuic.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ authors: ["Abhishek Anand <[email protected]>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
["bash" "./configure.sh"]
[make "-j" "%{jobs}%" "-C" "pcuic"]
]
install: [
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq-safechecker.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ authors: ["Abhishek Anand <[email protected]>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
["bash" "./configure.sh"]
[make "-j" "%{jobs}%" "-C" "safechecker"]
]
install: [
Expand Down
7 changes: 4 additions & 3 deletions coq-metacoq-template.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ authors: ["Abhishek Anand <[email protected]>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
["bash" "./configure.sh"]
[make "-j" "%{jobs}%" "template-coq"]
]
install: [
[make "-C" "template-coq" "install"]
]
depends: [
"ocaml" {>= "4.07.1"}
"coq" { >= "8.15~" & < "8.16~" }
"coq-equations" { = "1.3+8.15" }
"stdlib-shims"
"coq" { >= "8.15" & < "8.16~" }
"coq-equations" { >= "1.3" }
]
synopsis: "A quoting and unquoting library for Coq in Coq"
description: """
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq-translations.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ authors: ["Abhishek Anand <[email protected]>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
["bash" "./configure.sh"]
[make "-j" "%{jobs}%" "-C" "translations"]
]
install: [
Expand Down
2 changes: 1 addition & 1 deletion coq-metacoq.opam
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ depends: [
"coq-metacoq-translations" {= version}
]
build: [
["sh" "./configure.sh" ] {with-test}
["bash" "./configure.sh" ] {with-test}
[make "-C" "examples" ] {with-test}
[make "-C" "test-suite" ] {with-test}
]
Expand Down
6 changes: 5 additions & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ all: examples
examples: Makefile.coq
$(MAKE) -f Makefile.coq TIMED=$(TIMED)

Makefile.coq: Makefile
Makefile.coq: Makefile _CoqProject
coq_makefile -f _CoqProject -o Makefile.coq

_CoqProject: _CoqProject.in metacoq-config
cat metacoq-config > _CoqProject
cat _CoqProject.in >> _CoqProject

clean: Makefile.coq
$(MAKE) -f Makefile.coq clean

Expand Down
16 changes: 0 additions & 16 deletions examples/_CoqProject

This file was deleted.

9 changes: 9 additions & 0 deletions examples/_CoqProject.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-R . MetaCoq.Examples

demo.v
constructor_tac.v
add_constructor.v
tauto.v
typing_correctness.v
metacoq_tour_prelude.v
metacoq_tour.v
72 changes: 72 additions & 0 deletions html/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
var coqdocjs = coqdocjs || {};

coqdocjs.repl = {
"fun": "λ",
"forall": "∀",
"exists": "∃",
"~": "¬",
"/\\": "∧",
"\\/": "∨",
"->": "→",
"<-": "←",
"<->": "↔",
"=>": "⇒",
"<>": "≠",
"<=": "≤",
">=": "≥",
"el": "∈",
"nel": "∉",
"<<=": "⊆",
"<<": "⊂",
"|-": "⊢",
"++": "⧺",
"===": "≡",
"=/=": "≢",
"=~=": "≅",
"==>": "⟹",
"lhd": "⊲",
"rhd": "⊳",
"nat": "ℕ",
"alpha": "α",
"beta": "β",
"gamma": "γ",
"delta": "δ",
"epsilon": "ε",
"eta": "η",
"iota": "ι",
"kappa": "κ",
"lambda": "λ",
"mu": "μ",
"nu": "ν",
"lia": "ω",
"phi": "ϕ",
"pi": "π",
"psi": "ψ",
"rho": "ρ",
"sigma": "σ",
"tau": "τ",
"theta": "θ",
"xi": "ξ",
"zeta": "ζ",
"Delta": "Δ",
"Gamma": "Γ",
"Pi": "Π",
"Sigma": "Σ",
"Lia": "Ω",
"Xi": "Ξ"
};

coqdocjs.subscr = {
"0" : "₀",
"1" : "₁",
"2" : "₂",
"3" : "₃",
"4" : "₄",
"5" : "₅",
"6" : "₆",
"7" : "₇",
"8" : "₈",
"9" : "₉",
};

coqdocjs.replInText = ["==>","<=>", "=>", "->", "<-", ":="];
9 changes: 9 additions & 0 deletions html/coqdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ tr.infrulemiddle hr {
color: rgb(40%,0%,40%);
}

.id[title="binder"] {
color: rgb(40%,0%,40%);
}

.id[type="definition"] {
color: rgb(0%,40%,0%);
}
Expand Down Expand Up @@ -327,3 +331,8 @@ ul.doclist {
margin-top: 0em;
margin-bottom: 0em;
}

.code :target {
border: 2px solid #D4D4D4;
background-color: #e5eecc;
}
Loading

0 comments on commit b9f10e4

Please sign in to comment.