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 Jun 6, 2024
1 parent 17fe45a commit d7dfa10
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
opam install --deps-only mirageio
- name: Build
run: |
opam exec -- mirage configure -t hvt -f mirage/config.ml
opam exec -- make depend
opam exec -- dune build mirage/

0 comments on commit d7dfa10

Please sign in to comment.