Skip to content

Commit

Permalink
Enable Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Oct 3, 2023
1 parent 9710b28 commit 545a588
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 31 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build and test

on:
- pull_request
- push

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 5.00.x
- 4.13.x
- 4.08.x
- 4.06.x

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

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

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

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

- run: opam exec -- dune build

- run: opam exec -- dune runtest

- name: Upload the build artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.ocaml-version }}-world.exe
path: _build/default/world.exe

lint-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Use OCaml 4.13.x
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.13.x
dune-cache: true

- name: Lint doc
uses: ocaml/setup-ocaml/lint-doc@v2
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

0 comments on commit 545a588

Please sign in to comment.