Nombres/.github/workflows/blank.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2021-05-24 11:45:29 +00:00
name: CI
# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
2021-05-24 11:56:42 +00:00
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
ocaml-compiler:
- 4.12.x
runs-on: ${{ matrix.os }}
2021-05-24 11:45:29 +00:00
steps:
2021-05-24 11:56:42 +00:00
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
2021-05-24 11:45:29 +00:00
2021-05-24 11:56:42 +00:00
- run: opam install . --deps-only
2021-05-24 11:45:29 +00:00
2021-05-24 11:56:42 +00:00
- run: opam exec -- dune build
2021-05-24 12:45:18 +00:00
- name: Upload artifact
2021-05-24 12:45:18 +00:00
uses: actions/upload-artifact@v2.2.3
with:
name: |
if [ "$RUNNER_OS" == "Windows" ]; then
echo "nbr-win"
else
echo "nbr-lin"
fi
path: |
2021-05-24 13:39:51 +00:00
if [ "$RUNNER_OS" == "Windows" ]; then
echo "_build/install/default/bin/nbr.exe"
else
echo "_build/install/default/bin/nbr"
fi
2021-05-24 12:45:18 +00:00
retention-days: 1