sidekick/.github/workflows/main.yml
Simon Cruanes 1a71535178
chore: try github actions (#3)
* chore: try github actions
2019-11-21 13:35:52 -06:00

24 lines
761 B
YAML

name: Build sidekick-bin
on: [push]
jobs:
run:
name: Build
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [macos-latest, ubuntu-latest, windows-latest]
ocaml-version: [ '4.05.0' ]
steps:
- uses: actions/checkout@master
- uses: avsm/setup-ocaml@master
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: opam pin -n .
- run: opam depext -yt sidekick-bin
- run: opam install -t . --deps-only
- run: opam exec -- dune build
- run: opam exec -- dune runtest
- uses: actions/upload-artifact@master
with:
name: sidekick-bin-${{ matrix.operating-system }}-${{ matrix.ocaml-version }}.exe
path: _build/default/src/main/main.exe