Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupus committed Nov 11, 2024
1 parent 4501c93 commit 43f670f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ocaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Rust tests

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
run:
name: Build
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
ocaml-compiler:
[
"4.14.1",
]

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

- name: OCaml/Opam cache
id: ocaml-rs-opam-cache
uses: actions/cache@v4
with:
path: "~/.opam"
key: ocaml-rs-opam-${{ matrix.ocaml-compiler }}-${{ matrix.os }}

- name: Use 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 43f670f

Please sign in to comment.