Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis -> GitHub Actions #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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
ocaml-compiler:
- "4.14"
- "5.2"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- 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))))
35 changes: 19 additions & 16 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"
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"