Skip to content

Commit

Permalink
Chores
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Dec 18, 2024
1 parent a0a101e commit 7e79416
Show file tree
Hide file tree
Showing 9 changed files with 541 additions and 589 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main workflow
name: Builds, tests & co

on:
pull_request:
Expand All @@ -13,12 +13,12 @@ jobs:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- macos-latest
- windows-latest
ocaml-compiler:
- "4.14"
- "5.2"
- 5
- 4
include:
- os: ubuntu-latest
ocaml-compiler: "4.08"
Expand All @@ -45,23 +45,30 @@ jobs:
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "4.14"

ocaml-compiler: 5
- uses: ocaml/setup-ocaml/lint-doc@v3

lint-opam:
lint-fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "4.14"
ocaml-compiler: 5
- uses: ocaml/setup-ocaml/lint-fmt@v3

lint-opam:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5
- uses: ocaml/setup-ocaml/lint-opam@v3
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
_build
*~
\#*#
.#*
reactiveData.install
api.docdir
doc/html
/_build/
5 changes: 0 additions & 5 deletions .merlin

This file was deleted.

3 changes: 3 additions & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version=0.27.0
profile=conventional
parse-docstrings=true
18 changes: 17 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
(lang dune 1.0)
(lang dune 3.17)
(name reactiveData)

(generate_opam_files true)

(maintainers "Ocsigen team <dev@ocsigen.org>")
(authors "Hugo Heuzard <hugo.heuzard@gmail.com>")
(license "LGPL-3.0-or-later WITH OCaml-LGPL-linking-exception")
(source (github ocsigen/reactiveData))

(package
(name reactiveData)
(synopsis "Declarative events and signals for OCaml")
(description "React is an OCaml module for functional reactive programming (FRP). It provides support to program with time varying values : declarative events and signals. React doesn't define any primitive event or signal, it lets the client chooses the concrete timeline.")
(tags ("reactive" "declarative" "signal" "event" "frp"))
(depends
(ocaml (>= 4.08))
(react (and (>= 1.2.1) (< 1.3)))))
34 changes: 21 additions & 13 deletions reactiveData.opam
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Declarative events and signals for OCaml"
description: "React is an OCaml module for functional reactive programming (FRP). It provides support to program with time varying values : declarative events and signals. React doesn't define any primitive event or signal, it lets the client chooses the concrete timeline."
maintainer: "dev@ocsigen.org"
description:
"React is an OCaml module for functional reactive programming (FRP). It provides support to program with time varying values : declarative events and signals. React doesn't define any primitive event or signal, it lets the client chooses the concrete timeline."
maintainer: ["Ocsigen team <dev@ocsigen.org>"]
authors: ["Hugo Heuzard <hugo.heuzard@gmail.com>"]
license: "LGPL-3.0-or-later WITH OCaml-LGPL-linking-exception"
tags: ["reactive" "declarative" "signal" "event" "frp"]
homepage: "https://github.com/ocsigen/reactiveData"
dev-repo: "git+https://github.com/ocsigen/reactiveData.git"
bug-reports: "https://github.com/ocsigen/reactiveData/issues"

doc:"http://ocsigen.github.io/reactiveData/dev/"

tags: [ "reactive" "declarative" "signal" "event" "frp" ]
license: "LGPL-3.0-or-later WITH OCaml-LGPL-linking-exception"

depends: [
"dune" {>= "3.17"}
"ocaml" {>= "4.08"}
"dune" {>= "1.0"}
"react" {>= "1.2.1" < "1.3"}
"react" {>= "1.2.1" & < "1.3"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/ocsigen/reactiveData.git"
7 changes: 3 additions & 4 deletions src/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
(library
(name reactiveData)
(public_name reactiveData)
(libraries react)
)
(name reactiveData)
(public_name reactiveData)
(libraries react))
Loading

0 comments on commit 7e79416

Please sign in to comment.