Skip to content

Commit

Permalink
Merge pull request #5 from quantifyearth/ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
patricoferris authored Feb 21, 2025
2 parents 149b680 + 5db1226 commit bfa1e7f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Void Test
on:
- push
- pull_request
permissions: read-all
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5

- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: sudo ./_build/default/examples/hey.exe
2 changes: 1 addition & 1 deletion examples/hey.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ let () =
in
let t = Void.spawn ~sw void in
let status = Promise.await (Void.exit_status t) in
Eio.traceln "Void process exited with %s" (Void.exit_status_to_string status)
Eio.traceln "Void process: %s" (Void.exit_status_to_string status)

0 comments on commit bfa1e7f

Please sign in to comment.