chore: try github actions (#3)

* chore: try github actions
This commit is contained in:
Simon Cruanes 2019-11-21 13:35:52 -06:00 committed by GitHub
parent 61b5e9cee2
commit 1a71535178
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,24 @@
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