Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikedupont2 authored Dec 21, 2023
1 parent 073a495 commit e6d0960
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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"

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

steps:
- name: Checkout tree
uses: meta-introspector/checkout@v4

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: meta-introspector/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 e6d0960

Please sign in to comment.