Skip to content

Commit

Permalink
Add GH Actions CI enabling various OCamls.
Browse files Browse the repository at this point in the history
No windows builds because Async doesn't support Windows so the async bindings won't build there.
  • Loading branch information
tmcgilchrist committed Aug 16, 2021
1 parent d615cbb commit d83e9c5
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 34 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "GA"
include: "scope"
labels:
- "CI"
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
- push
- pull_request

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest

ocaml-version:
- 4.04.x
- 4.05.x
- 4.06.x
- 4.07.x
- 4.08.x
- 4.09.x
- 4.10.x
- 4.11.x
- 4.12.x

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

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

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

- name: Dependencies
run: opam install --deps-only . --with-test
- name: Build
run: opam exec -- dune build
- name: Test
run: opam exec -- dune build @runtest
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

0 comments on commit d83e9c5

Please sign in to comment.