-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from formalsec/portable-installation
CI and Public library
- Loading branch information
Showing
13 changed files
with
350 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- self-hosted | ||
ocaml-compiler: | ||
- "4.14" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Setup OCaml ${{ matrix.ocaml-compiler }} | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
- name: Install dependencies | ||
run: opam install -y . --deps-only --with-test | ||
- name: Build | ||
run: opam exec -- dune build @install | ||
- name: Test | ||
run: opam exec -- dune runtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version=0.26.1 | ||
assignment-operator=end-line | ||
break-cases=fit | ||
break-fun-decl=wrap | ||
break-fun-sig=wrap | ||
break-infix=wrap | ||
break-infix-before-func=false | ||
break-separators=before | ||
break-sequences=true | ||
cases-exp-indent=2 | ||
cases-matching-exp-indent=normal | ||
doc-comments=before | ||
doc-comments-padding=2 | ||
doc-comments-tag-only=default | ||
dock-collection-brackets=false | ||
exp-grouping=preserve | ||
field-space=loose | ||
if-then-else=compact | ||
indicate-multiline-delimiters=space | ||
indicate-nested-or-patterns=unsafe-no | ||
infix-precedence=indent | ||
leading-nested-match-parens=false | ||
let-and=sparse | ||
let-binding-spacing=compact | ||
let-module=compact | ||
margin=80 | ||
max-indent=2 | ||
module-item-spacing=sparse | ||
ocaml-version=4.14.0 | ||
ocp-indent-compat=false | ||
parens-ite=false | ||
parens-tuple=always | ||
parse-docstrings=true | ||
sequence-blank-line=preserve-one | ||
sequence-style=terminator | ||
single-case=compact | ||
space-around-arrays=true | ||
space-around-lists=true | ||
space-around-records=true | ||
space-around-variants=true | ||
type-decl=sparse | ||
wrap-comments=false | ||
wrap-fun-args=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
external build_enums : unit -> unit = "build_enums" | ||
external build_enums : unit -> unit = "build_enums" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
open Build_enums | ||
|
||
let () = | ||
build_enums () | ||
let () = build_enums () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
synopsis: "OCaml bindings for the cvc5 SMT solver" | ||
description: "OCaml bindings for the cvc5 SMT solver" | ||
maintainer: ["João Pereira <joaomhmpereira@tecnico.ulisboa.pt>"] | ||
authors: ["João Pereira <joaomhmpereira@tecnico.ulisboa.pt>"] | ||
homepage: "https://github.com/formalsec/ocaml-cvc5" | ||
bug-reports: "https://github.com/formalsec/ocaml-cvc5/issues" | ||
depends: [ | ||
"dune" {>= "3.10"} | ||
"ocaml" {>= "4.12"} | ||
"conf-gcc" {build} | ||
"conf-g++" {build} | ||
"conf-gmp" {build} | ||
"conf-cmake" {build} | ||
"conf-python-3" {build} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/formalsec/ocaml-cvc5.git" |
Oops, something went wrong.