mirror of
https://github.com/c-cube/linol.git
synced 2025-12-05 19:00:34 -05:00
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
name: build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
jobs:
|
|
build4:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
ocaml-compiler:
|
|
- 4.14.x
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- uses: ocaml/setup-ocaml@v3
|
|
with:
|
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
|
dune-cache: true
|
|
allow-prerelease-opam: true
|
|
- run: opam pin -n .
|
|
- 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
|
|
- 5.2.x
|
|
- 5.3.x
|
|
lsp-version:
|
|
- 1.19.0
|
|
- 1.20.1
|
|
- 1.22.0
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- uses: ocaml/setup-ocaml@v3
|
|
with:
|
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
|
dune-cache: true
|
|
allow-prerelease-opam: true
|
|
- run: opam pin -n .
|
|
- run: opam pin add jsonrpc ${{ matrix.lsp-version }}
|
|
- run: opam pin add lsp ${{ matrix.lsp-version }}
|
|
- run: opam depext -yt linol linol-lwt linol-eio
|
|
- run: opam install -t . --deps-only
|
|
- run: opam exec -- dune build
|
|
- run: opam exec -- dune runtest
|
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|