Nombres/.github/workflows/blank.yml

51 lines
1.3 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
2021-05-24 13:57:02 +00:00
- name: Upload a Windows Build Artifact
2021-05-24 12:45:18 +00:00
uses: actions/upload-artifact@v2.2.3
2021-05-24 13:57:02 +00:00
if: runner.os == 'Windows'
2021-05-24 12:45:18 +00:00
with:
2021-05-24 13:57:02 +00:00
name: nbr-win32
# A file, directory or wildcard pattern that describes what to upload
path: _build/install/default/bin/nbr.exe
retention-days: 1
- name: Upload a Linux Build Artifact
uses: actions/upload-artifact@v2.2.3
if: runner.os == 'Linux'
with:
name: nbr-linux
# A file, directory or wildcard pattern that describes what to upload
path: _build/install/default/bin/nbr
2021-05-24 12:45:18 +00:00
retention-days: 1