forked from mirage/ocaml-solo5
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.11 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
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
operating-system: [ubuntu-latest]
ocaml-version: [ocaml-base-compiler.5.2.0~beta1]
mode:
- name: hvt
exec: false
- name: spt
exec: true
- name: virtio
exec: false
- name: muen
exec: false
- name: xen
exec: false
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
opam-local-packages: |
!ocaml-solo5-cross-aarch64.opam
- name: Pinning package
run: opam pin add -n -t -y ocaml-solo5 .
- name: Install ocaml-solo5 and dune
run: opam depext -iyt ocaml-solo5 conf-libseccomp dune
- name: Compiling example project
run: MODE=${{ matrix.mode.name }} opam exec -- dune build --root test
- name: Running example project
if: ${{ matrix.mode.exec }}
run: opam exec -- solo5-${{ matrix.mode.name }} test/_build/solo5/main.exe || [ $? -eq 1 ]