Skip to content

Commit b9f10e4

Browse files
mattam82yforster
andauthored
Release changes 8.15 (#731)
* 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 <yannick.forster@inria.fr>
1 parent f170ec6 commit b9f10e4

25 files changed

+593
-41
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
sudo chown -R coq:coq . # <--
4949
opam exec -- ocamlfind list
5050
endGroup
51+
before_install: |
52+
startGroup "Print opam config"
53+
opam config list; opam repo list; opam list
54+
endGroup
5155
script: |
5256
startGroup "Build project"
5357
opam exec -- ./configure.sh --enable-${{matrix.target}}

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,3 +352,13 @@ erasure/src/eEnvMap.ml
352352
erasure/src/eEnvMap.mli
353353
erasure/src/eGlobalEnv.mli
354354
erasure/src/eGlobalEnv.ml
355+
Makefile.conf
356+
test-suite/plugin-demo/src/META.coq-metacoq-demo-plugin
357+
pcuic/src/META.coq-metacoq-pcuic
358+
examples/_CoqProject
359+
test-suite/_CoqProject
360+
examples/metacoq-config
361+
test-suite/metacoq-config
362+
test-suite/plugin-demo/_CoqProject
363+
test-suite/plugin-demo/_PluginProject
364+
test-suite/plugin-demo/metacoq-config

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ uninstall: all
1919
$(MAKE) -C translations uninstall
2020

2121
html: all
22-
"coqdoc" -toc -utf8 -interpolate -l -html \
22+
"coqdoc" --multi-index -toc -utf8 -interpolate -html \
23+
--with-header ./html/resources/header.html --with-footer ./html/resources/footer.html \
2324
-R template-coq/theories MetaCoq.Template \
2425
-R pcuic/theories MetaCoq.PCUIC \
2526
-R safechecker/theories MetaCoq.SafeChecker \
@@ -104,7 +105,7 @@ ci-quick:
104105

105106
ci-opam:
106107
# Use -v so that regular output is produced
107-
opam install -v -y .
108+
opam install --with-test -v -y .
108109
opam remove -y coq-metacoq coq-metacoq-template
109110

110111
checktodos:

configure.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ then
2121
SAFECHECKER_DEPS="-R ../pcuic/theories MetaCoq.PCUIC"
2222
ERASURE_DEPS="-R ../safechecker/theories MetaCoq.SafeChecker"
2323
TRANSLATIONS_DEPS=""
24+
EXAMPLES_DEPS="-I ../safechecker/src -I ../erasure/src -R ../erasure/theories MetaCoq.Erasure"
25+
TEST_SUITE_DEPS="-I ../safechecker/src -I ../erasure/src -R ../erasure/theories MetaCoq.Erasure"
26+
PLUGIN_DEMO_DEPS="-I ../../template-coq/build -R ../../template-coq/theories MetaCoq.Template -I ../../template-coq/"
27+
echo "METACOQ_CONFIG = local" > Makefile.conf
2428
else
2529
echo "Building MetaCoq globally (default)"
2630
# The safechecker and erasure plugins depend on the extractable template-coq plugin
@@ -30,17 +34,28 @@ then
3034
SAFECHECKER_DEPS=""
3135
ERASURE_DEPS=""
3236
TRANSLATIONS_DEPS=""
37+
EXAMPLES_DEPS=""
38+
TEST_SUITE_DEPS=""
39+
PLUGIN_DEMO_DEPS="-I ${COQLIB}/user-contrib/MetaCoq/Template"
40+
echo "METACOQ_CONFIG = global" > Makefile.conf
3341
fi
3442

3543
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > pcuic/metacoq-config
3644
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > safechecker/metacoq-config
3745
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > erasure/metacoq-config
3846
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > translations/metacoq-config
47+
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > examples/metacoq-config
48+
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > test-suite/metacoq-config
49+
echo "# DO NOT EDIT THIS FILE: autogenerated from ./configure.sh" > test-suite/plugin-demo/metacoq-config
3950

4051
echo ${PCUIC_DEPS} >> pcuic/metacoq-config
4152
echo ${PCUIC_DEPS} ${SAFECHECKER_DEPS} >> safechecker/metacoq-config
4253
echo ${PCUIC_DEPS} ${SAFECHECKER_DEPS} ${ERASURE_DEPS} >> erasure/metacoq-config
4354
echo ${PCUIC_DEPS} ${TRANSLATIONS_DEPS} >> translations/metacoq-config
55+
echo ${PCUIC_DEPS} ${SAFECHECKER_DEPS} ${ERASURE_DEPS} ${TRANSLATIONS_DEPS} ${EXAMPLES_DEPS} >> examples/metacoq-config
56+
echo ${PCUIC_DEPS} ${SAFECHECKER_DEPS} ${ERASURE_DEPS} ${TRANSLATIONS_DEPS} ${TEST_SUITE_DEPS} >> test-suite/metacoq-config
57+
echo ${PLUGIN_DEMO_DEPS} >> test-suite/plugin-demo/metacoq-config
58+
4459
else
4560
echo "Error: coqc not found in path"
4661
fi

coq-metacoq-erasure.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
1919
]
2020
license: "MIT"
2121
build: [
22-
["sh" "./configure.sh"]
22+
["bash" "./configure.sh"]
2323
[make "-j" "%{jobs}%" "-C" "erasure"]
2424
]
2525
install: [

coq-metacoq-pcuic.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
1919
]
2020
license: "MIT"
2121
build: [
22-
["sh" "./configure.sh"]
22+
["bash" "./configure.sh"]
2323
[make "-j" "%{jobs}%" "-C" "pcuic"]
2424
]
2525
install: [

coq-metacoq-safechecker.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
1919
]
2020
license: "MIT"
2121
build: [
22-
["sh" "./configure.sh"]
22+
["bash" "./configure.sh"]
2323
[make "-j" "%{jobs}%" "-C" "safechecker"]
2424
]
2525
install: [

coq-metacoq-template.opam

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
1919
]
2020
license: "MIT"
2121
build: [
22-
["sh" "./configure.sh"]
22+
["bash" "./configure.sh"]
2323
[make "-j" "%{jobs}%" "template-coq"]
2424
]
2525
install: [
2626
[make "-C" "template-coq" "install"]
2727
]
2828
depends: [
2929
"ocaml" {>= "4.07.1"}
30-
"coq" { >= "8.15~" & < "8.16~" }
31-
"coq-equations" { = "1.3+8.15" }
30+
"stdlib-shims"
31+
"coq" { >= "8.15" & < "8.16~" }
32+
"coq-equations" { >= "1.3" }
3233
]
3334
synopsis: "A quoting and unquoting library for Coq in Coq"
3435
description: """

coq-metacoq-translations.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
1919
]
2020
license: "MIT"
2121
build: [
22-
["sh" "./configure.sh"]
22+
["bash" "./configure.sh"]
2323
[make "-j" "%{jobs}%" "-C" "translations"]
2424
]
2525
install: [

coq-metacoq.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ depends: [
2626
"coq-metacoq-translations" {= version}
2727
]
2828
build: [
29-
["sh" "./configure.sh" ] {with-test}
29+
["bash" "./configure.sh" ] {with-test}
3030
[make "-C" "examples" ] {with-test}
3131
[make "-C" "test-suite" ] {with-test}
3232
]

0 commit comments

Comments
 (0)