forked from alastairreid/asl-interpreter
-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (50 loc) · 1.37 KB
/
Copy pathpull-request.yml
File metadata and controls
63 lines (50 loc) · 1.37 KB
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
name: pull-request
on:
pull_request:
workflow_dispatch:
permissions: read-all
env:
OPAMROOT: ${{ github.workspace }}/.opam
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Check out
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install APT dependencies
run: |
sudo apt update
sudo apt-get install -y libgmp-dev opam pkg-config lsb-release wget software-properties-common gnupg
- name: Install Clang 16
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16
- name: Install Python dependencies
run: python3 -m pip install --no-deps --require-hashes --requirement requirements.txt
- name: Setup OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5
opam-disable-sandboxing: true
dune-cache: true
env:
OPAMLOCKED: locked
- name: Install OCaml dependencies
run: |
eval $(opam env)
opam install . --deps-only --with-test --with-doc --locked --yes
- name: Build
run: |
eval $(opam env)
make build
- name: Test
run: |
eval $(opam env)
make test
- name: Build documentation
run: |
eval $(opam env)
make doc