Skip to content

Commit

Permalink
Travis -> GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Jul 13, 2024
1 parent d9ea0ab commit 700fe70
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 111 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Builds, tests & co

on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "5.2"
- run: opam install . --deps-only
- run: opam exec -- dune build

lint-doc:
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.2"
- uses: ocaml/setup-ocaml/lint-doc@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.2"
- uses: ocaml/setup-ocaml/lint-opam@v3
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
_build/
.merlin
*.install
_opam/
scratch/
/_build/
/_opam/
81 changes: 0 additions & 81 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions Makefile

This file was deleted.

25 changes: 24 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
(lang dune 1.0)
(lang dune 3.16)

(name lwt_ssl)

(license LGPL-with-OpenSSL-linking-exception)

(authors "Jérôme Vouillon" "Jérémie Dimino")

(maintainers "Anton Bachin <antonbachin@yahoo.com>")

(source
(github ocsigen/lwt_ssl))

(generate_opam_files true)

(package
(name lwt_ssl)
(synopsis "OpenSSL binding with concurrent I/O")
(depends
ocaml
base-unix
(lwt
(>= 3.0.0))
(ssl
(>= 0.5.13))))
37 changes: 20 additions & 17 deletions lwt_ssl.opam
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"

synopsis: "OpenSSL binding with concurrent I/O"

version: "dev"
license: "LGPL with OpenSSL linking exception"
maintainer: ["Anton Bachin <antonbachin@yahoo.com>"]
authors: ["Jérôme Vouillon" "Jérémie Dimino"]
license: "LGPL-with-OpenSSL-linking-exception"
homepage: "https://github.com/ocsigen/lwt_ssl"
doc: "https://github.com/ocsigen/lwt_ssl/blob/master/src/lwt_ssl.mli"
bug-reports: "https://github.com/ocsigen/lwt_ssl/issues"

authors: [
"Jérôme Vouillon"
"Jérémie Dimino"
]
maintainer: "Anton Bachin <antonbachin@yahoo.com>"
dev-repo: "git+https://github.com/ocsigen/lwt_ssl.git"

depends: [
"dune" {>= "3.16"}
"ocaml"
"base-unix"
"dune"
"lwt" {>= "3.0.0"}
"ocaml"
"ssl" {>= "0.5.13"}
"odoc" {with-doc}
]

build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/ocsigen/lwt_ssl.git"

0 comments on commit 700fe70

Please sign in to comment.