WIP: #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
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 | |
- 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 ppxlib ppx_tools | |
- name: Build SPOC | |
run: export CUDA_PATH=/usr/lib/x86_64-linux-gnu/ && eval $(opam env) && dune build |