mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
24 lines
771 B
YAML
24 lines
771 B
YAML
name: build
|
|
on: [push, pull_request]
|
|
jobs:
|
|
run:
|
|
name: Build
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
ocaml: [ '4.08.0', '4.03.0', '4.11.0' ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- uses: avsm/setup-ocaml@master
|
|
with:
|
|
ocaml-version: ${{ matrix.ocaml }}
|
|
- run: opam pin -n .
|
|
- run: opam depext -yt containers containers-data containers-thread
|
|
- run: opam install -t . --deps-only
|
|
if: ${{ matrix.os != 'windows-latest' }}
|
|
- run: opam install . --deps-only # no test deps
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
|
- run: opam exec -- dune build
|
|
- run: opam exec -- dune runtest
|
|
if: ${{ matrix.os != 'windows-latest' }}
|