Skip to content

Commit

Permalink
Update ocaml-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshihiro503 authored Mar 12, 2024
1 parent 44b1ed6 commit 6afbdcd
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/ocaml-ci.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
- name: Set up OCaml
uses: ocaml/[email protected]
name: Builds, tests & co

on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ocaml-compiler:
- "5.1"
- "4.14.1"

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

steps:
- name: Checkout tree
uses: actions/checkout@v4

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

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest

0 comments on commit 6afbdcd

Please sign in to comment.