Skip to content

Commit

Permalink
Drop OCaml 4.04 for ppxlib. Migrate from Travis to GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
trepetti committed May 1, 2021
1 parent fbc91d4 commit 276e1af
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 8 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Main workflow

on:
- pull_request
- push

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ocaml-version:
- 4.12.0
- 4.11.2
- 4.10.2
- 4.09.1
- 4.08.1
- 4.07.1
- 4.06.1
- 4.05.0

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}

- run: opam pin add ppx_deriving_cmdliner.dev . --no-action

- run: opam depext ppx_deriving_cmdliner --yes --with-test

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ It is also a [ppx_deriving](https://github.com/whitequark/ppx_deriving) plugin
that generates a [Cmdliner](https://github.com/dbuenzli/cmdliner) `Term` for a
given type.

![example workflow](https://github.com/hammerlab/ppx_deriving_cmdliner/actions/workflows/workflow.yml/badge.svg)

## Example


Expand Down
14 changes: 7 additions & 7 deletions dune-workspace.dev
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(lang dune 1.0)
;; This file is used by `make all-supported-ocaml-versions`
(context (opam (switch 4.04.0)))
(context (opam (switch 4.12.0)))
(context (opam (switch 4.11.2)))
(context (opam (switch 4.10.2)))
(context (opam (switch 4.09.1)))
(context (opam (switch 4.08.1)))
(context (opam (switch 4.07.1)))
(context (opam (switch 4.06.1)))
(context (opam (switch 4.05.0)))
(context (opam (switch 4.06.0)))
(context (opam (switch 4.07.0)))
(context (opam (switch 4.08.0)))
(context (opam (switch 4.09.0)))
(context (opam (switch 4.10.0)))
(context (opam (switch 4.11.0)))
2 changes: 1 addition & 1 deletion ppx_deriving_cmdliner.opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ run-test: [
["dune" "runtest" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.03"}
"ocaml" {>= "4.05"}
"cmdliner" {>= "1.0.0"}
"result"
"ppx_deriving" {>= "5.0"}
Expand Down

0 comments on commit 276e1af

Please sign in to comment.