Skip to content

Commit

Permalink
CI: Add a CI configuration to build the Mirage hvt unikernel
Browse files Browse the repository at this point in the history
  • Loading branch information
shym committed Jul 16, 2024
1 parent 16d2036 commit a9e922f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/mirage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build the Mirage unikernel
on: [push, pull_request]

jobs:
mirage:
name: OCaml 5.2.0
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install OPAM and OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.2.0
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
- name: Install dependencies
run: |
sudo apt-get install -y libseccomp-dev
opam pin add -n ocaml-solo5 'https://github.com/shym/ocaml-solo5.git#ocaml-5.2-reb'
opam install mirage ocaml-solo5
- name: Build
run: |
rm Makefile # So that mirage configure can create it
opam exec -- mirage configure -t hvt -f mirage/config.ml
opam exec -- make depend
opam exec -- dune build mirage/

0 comments on commit a9e922f

Please sign in to comment.