Skip to content

Commit

Permalink
make coq-htt package depend on coq-htt-core (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
palmskog authored Oct 7, 2024
1 parent 3789760 commit 3daf5b9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/docker-action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file was generated from `meta.yml`, please do not edit manually.

name: Docker CI

on:
Expand All @@ -22,12 +20,34 @@ jobs:
- 'mathcomp/mathcomp:latest-coq-dev'
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: coq-community/docker-coq-action@v1
with:
opam_file: 'coq-htt.opam'
custom_image: ${{ matrix.image }}

custom_script: |
{{before_install}}
startGroup "Build htt-core dependencies"
opam pin add -n -y -k path coq-htt-core .
opam update -y
opam install -y -j $(nproc) coq-htt-core --deps-only
endGroup
startGroup "Build htt-core"
opam install -y -v -j $(nproc) coq-htt-core
opam list
endGroup
startGroup "Build htt dependencies"
opam pin add -n -y -k path coq-htt .
opam update -y
opam install -y -j $(nproc) coq-htt --deps-only
endGroup
startGroup "Build coq-htt"
opam install -y -v -j $(nproc) coq-htt
opam list
endGroup
startGroup "Uninstallation test"
opam remove -y coq-htt
opam remove -y coq-htt-core
endGroup
# See also:
# https://github.com/coq-community/docker-coq-action#readme
Expand Down
7 changes: 3 additions & 4 deletions coq-htt.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file was generated from `meta.yml`, please do not edit manually.

opam-version: "2.0"
maintainer: "fcsl@software.imdea.org"
version: "dev"
Expand Down Expand Up @@ -30,14 +28,15 @@ variables). The connection reconciles dependent types with effects of state and
establishes Separation logic as a type theory for such effects. In implementation terms, it means
that HTT implements Separation logic as a shallow embedding in Coq."""

build: [make "-j%{jobs}%"]
install: [make "install"]
build: ["dune" "build" "-p" name "-j" jobs]
depends: [
"dune" {>= "3.6"}
"coq" { (>= "8.19" & < "8.21~") | (= "dev") }
"coq-mathcomp-ssreflect" { (>= "2.2.0" & < "2.3~") | (= "dev") }
"coq-mathcomp-algebra"
"coq-mathcomp-fingroup"
"coq-fcsl-pcm" { (>= "2.0.0" & < "2.1~") | (= "dev") }
"coq-htt-core" {= version}
]

tags: [
Expand Down
9 changes: 9 additions & 0 deletions examples/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(coq.theory
(name htt)
(package coq-htt)
(synopsis "Hoare Type Theory with examples")
(flags :standard
-w -notation-overridden
-w -local-declaration
-w -redundant-canonical-projection
-w -projection-no-head-constant))

0 comments on commit 3daf5b9

Please sign in to comment.