Skip to content

Commit

Permalink
Merge pull request #1 from mseri/fixups
Browse files Browse the repository at this point in the history
Port to dune 2.0 and introduce github actions
  • Loading branch information
mseri authored Oct 3, 2020
2 parents 8e5481c + 09130e3 commit 97ae31f
Show file tree
Hide file tree
Showing 10 changed files with 276 additions and 255 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: md2mld CI
on:
- push
- pull_request
jobs:
run:
name: Tests
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
# no special functionality to test in macos-latest or windows-latest
operating-system: [ubuntu-latest]
ocaml-version: [ '4.11.1', '4.10.1', '4.09.1', '4.08.1', '4.07.1', '4.06.1', '4.05.0', '4.04.2', '4.03.0', '4.02.3' ]
steps:
- uses: actions/checkout@master
- uses: avsm/[email protected]
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: opam pin add md2mld.dev . --no-action
- run: opam install md2mld --yes --deps-only
- run: opam install -t md2mld
3 changes: 3 additions & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
profile=janestreet
wrap-comments=false
let-binding-spacing=sparse
8 changes: 2 additions & 6 deletions docs/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
(action
(with-stdout-to
%{targets}
(run %{exe:../src/md2mld.exe} -min-header 3 %{deps})
)
)
)
(run %{exe:../src/md2mld.exe} -min-header 3 %{deps}))))

(documentation
(mld_files index)
)
(mld_files index))
3 changes: 2 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
(lang dune 1.4)
(lang dune 2.0)
(name md2mld)
4 changes: 2 additions & 2 deletions md2mld.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ doc: "https://mseri.github.io/md2mld/"
bug-reports: "https://github.com/mseri/md2mld/issues"
depends: [
"ocaml"
"dune" {build & >= "1.4.0"}
"dune" {>= "2.0"}
"base-bytes"
"omd"
]
build: ["dune" "build" "-p" name "-j" jobs]
build: ["dune" "build" "-p" name "-j" jobs "@install" "@runtest" {with-test}]
dev-repo: "git+https://github.com/mseri/md2mld.git"
Loading

0 comments on commit 97ae31f

Please sign in to comment.