-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add a CI configuration to build the Mirage hvt unikernel
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
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
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/ |