Skip to content

Commit

Permalink
wip: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Oct 16, 2024
1 parent 37b450a commit 3a5ca04
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Test

on:
push:
branches:
- master
pull_request:

jobs:
run:
name: build # build+test on various versions of OCaml, on linux
timeout-minutes: 15
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- '4.08'
- '5.2'

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
allow-prerelease-opam: true

- run: opam install -t datalog --deps-only
- run: opam exec -- dune build @install
- run: opam exec -- dune build --profile=release --force @install @runtest

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ _build
*.install
*.exe
*.merlin
*.tmp

0 comments on commit 3a5ca04

Please sign in to comment.