Skip to content

WIP:

WIP: #67

Workflow file for this run

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