-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
31 lines (31 loc) · 871 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build and test OCaml module
inputs:
extra-packages:
description: Extra packages to install
required: false
default: ''
ocaml-compiler:
description: OCaml compiler
required: false
default: 4.14.x
runs:
using: composite
steps:
- name: Checkout latest code
uses: actions/checkout@v1
- name: Install ocaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ inputs.ocaml-compiler }}
opam-depext: true
opam-pin: true
- name: Install module
if: runner.os == 'Windows'
run: |
opam install --verbose -y --with-test . ${{ inputs.extra-packages }}
shell: pwsh
- name: Install module
if: runner.os != 'Windows'
run: |
opam --cli=2.1 install --verbose --confirm-level=unsafe-yes --with-test . ${{ inputs.extra-packages }}
shell: bash