-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (34 loc) · 1.32 KB
/
test.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
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.12.0
cache:
- true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install intel opencl
run: sudo ./.travis/install_intel_opencl.sh
- name: Install deps
run: sudo apt-get install --no-install-recommends nvidia-cuda-dev libnvrtc10.1 opam xvfb
- name: Opam Cache
uses: actions/cache@v2
with:
path: ~/.opam
key: ${{ matrix.os }}-${{ matrix.ocaml-version }}-${{ hashFiles('*.opam') }}-build
- name: Install opam packages
run: export OPAMYES=1 && eval $(opam env) && if $(camlp4);then echo; else opam init --compiler=${{ matrix.ocaml-compiler }} --disable-sandboxing; fi && eval $(opam env) && opam install graphics camlp4 ctypes ctypes-foreign cppo dune ppx_tools ppxlib
- name: Build SPOC
run: export CUDA_PATH=/usr/lib/x86_64-linux-gnu/ && eval $(opam env) && dune build
- name: Spoc tests
run: eval $(opam env) && /usr/bin/xvfb-run --auto-servernum make test
- name: Sarek tests
run: eval $(opam env) && /usr/bin/xvfb-run --auto-servernum make test_sarek