-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (66 loc) · 2.23 KB
/
build.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build and test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Compute dummy PATH
run: |
echo "DUMMYPATH=$PWD/.github/bin/:$PATH" >> "$GITHUB_ENV"
- name: Install OCaml compiler
uses: ocaml/setup-ocaml@v3
env:
PATH: ${{ env.DUMMYPATH }}
OVERRIDE_APT_INSTALL: bubblewrap g++-multilib gcc-multilib
with:
ocaml-compiler: 5.2.0
- name: Install extra packages
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu \
qemu-system-x86 qemu-system-arm
- name: Install arch-specific packages
run: |
opam install \
ocaml-unikraft-x86_64 \
ocaml-unikraft-backend-qemu-x86_64 \
ocaml-unikraft-backend-fc-x86_64 \
ocaml-unikraft-arm64 \
ocaml-unikraft-backend-qemu-arm64 \
ocaml-unikraft-backend-fc-arm64
- name: Show configuration
run: |
opam exec -- ocamlc -config
opam config list
opam list
- name: Install default x86_64 packages
run: |
opam install \
ocaml-unikraft \
ocaml-unikraft-default-x86_64 \
ocaml-unikraft-backend-qemu \
ocaml-unikraft-backend-fc
- name: Show toolchain configuration
run: |
opam exec -- ocamlfind -toolchain unikraft ocamlc -config
- name: Test example
run: |
opam install dune
cd example
opam exec -- dune runtest
UNIKERNEL_CMDLINE=sleep opam exec -- dune runtest
- name: Install the other default packages
run: |
opam install ocaml-unikraft-default-arm64
- name: Show configuration
run: |
opam exec -- ocamlfind -toolchain unikraft ocamlc -config
- name: Test example
run: |
opam install dune
cd example
opam exec -- dune runtest
UNIKERNEL_CMDLINE=sleep opam exec -- dune runtest
# Currently the ARM port is failing
continue-on-error: true