Skip to content

Commit

Permalink
ci: add an action to test mirage
Browse files Browse the repository at this point in the history
This gives us a known-good configuration of Mirage to test against. The
vast majority of the changes on the Dune side will not affect this, so
it is not useful to add this to the regular CI; instead, this gives us a
manual run to trigger at release time or on changes for which that can
be useful.

Signed-off-by: Etienne Millon <me@emillon.org>
  • Loading branch information
emillon committed Jul 6, 2023
1 parent dee2c39 commit fe19df7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mirage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Mirage

on:
workflow_dispatch:

jobs:
build:
name: Build caldav
runs-on: ubuntu-latest
steps:
- name: Clone caldav
uses: actions/checkout@v3
with:
repository: roburio/caldav
ref: 51f0d150542348dc259b7c9f7bc70ee592243f7f
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.14.x
opam-depext: false
- run: sed -i s/1.3/2.7/ dune-project
- run: opam pin add -n dune.dev git+https://github.com/ocaml/dune#$GITHUB_SHA
- run: sudo apt install libseccomp-dev
- run: opam install mirage
- run: cd mirage; opam exec -- mirage configure -f config.ml -t hvt
- run: cd mirage; opam exec -- make depend lock pull build

0 comments on commit fe19df7

Please sign in to comment.