Skip to content

Commit

Permalink
Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Jun 20, 2023
1 parent af0b844 commit e2a1cd2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ci

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false

matrix:
os:
- ubuntu-latest
# - macos-latest
ocaml-compiler:
- 5.0.x
- 4.14.x
- 4.13.x
- 4.12.x

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

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

- name: Set up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Install dependencies
run: opam install . --deps-only

- name: Build
run: opam exec -- dune build

0 comments on commit e2a1cd2

Please sign in to comment.