This commit is contained in:
Simon Cruanes 2024-05-22 11:40:05 -04:00
parent a1bb9d02f9
commit 4e4d1bc752
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 26 additions and 10 deletions

View file

@ -5,17 +5,13 @@ on:
- main - main
pull_request: pull_request:
jobs: jobs:
run: build4:
name: Build
strategy: strategy:
matrix: matrix:
os: os:
- ubuntu-latest - ubuntu-latest
#- macos-latest
#- windows-latest
ocaml-compiler: ocaml-compiler:
- 4.14.x - 4.14.x
- 5.1.x
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@main
@ -26,10 +22,30 @@ jobs:
allow-prerelease-opam: true allow-prerelease-opam: true
- run: opam pin -n . - run: opam pin -n .
- run: opam depext -yt linol linol-lwt - run: opam depext -yt linol linol-lwt
- run: opam install linol linol-lwt --deps-only -t
- run: opam exec -- dune build -p linol,linol-lwt
- run: opam exec -- dune runtest -p linol,linol-lwt
if: ${{ matrix.os == 'ubuntu-latest' }}
build5:
strategy:
matrix:
os:
- ubuntu-latest
#- macos-latest
#- windows-latest
ocaml-compiler:
- 5.1.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
allow-prerelease-opam: true
- run: opam pin -n .
- run: opam depext -yt linol linol-lwt linol-eio
- run: opam install -t . --deps-only - run: opam install -t . --deps-only
- run: opam exec -- dune build - run: opam exec -- dune build
if: ${{ matrix.ocaml-compiler == '5.1.x' }}
- run: opam exec -- dune build -p linol,linol-lwt
if: ${{ matrix.ocaml-compiler == '4.14.x' }}
- run: opam exec -- dune runtest - run: opam exec -- dune runtest
if: ${{ matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == '5.1.x' }} if: ${{ matrix.os == 'ubuntu-latest' }}

View file

@ -11,7 +11,7 @@ depends: [
"yojson" {>= "1.6"} "yojson" {>= "1.6"}
"linol" {= version} "linol" {= version}
"base-unix" "base-unix"
"eio" {>= "1.0" & < "1.0"} "eio" {>= "1.0" & < "2.0"}
"lsp" {>= "1.17" & < "1.18"} "lsp" {>= "1.17" & < "1.18"}
"jsonrpc" {>= "1.17" & < "1.18"} "jsonrpc" {>= "1.17" & < "1.18"}
"odoc" {with-doc} "odoc" {with-doc}