-
Notifications
You must be signed in to change notification settings - Fork 31
72 lines (61 loc) · 1.49 KB
/
build.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Github CI
on:
push:
branches:
- main
- v8.21
- v8.20
- v8.19
- v8.18
- v8.17
- v8.16
- v8.15
pull_request:
branches:
- main
- v8.21
- v8.20
- v8.19
- v8.18
- v8.17
- v8.16
- v8.15
# Cancels previous runs of the same workflow
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
include:
- name: Windows Latest
ocaml: 4.14.x
os: windows-latest
fail-fast: false
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- name: 🔭 Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: 🐫 Setup OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml }}
dune-cache: true
- name: 🐫🐪🐫 Get dependencies
run: |
opam pin add --dev dune
opam pin add --dev ocamlfind
opam exec -- make opam-deps
- name: 🐛 Special Windows Config [only on Win CI]
if: matrix.os == 'windows-latest'
run: opam exec -- make winconfig
- name: 🧱 Build coq-lsp
run: opam exec -- make build
- name: 🐛 Test coq-lsp
run: opam exec -- make test
- name: 🐛 Test fcc
run: opam exec -- make test-compiler