Skip to content

Commit

Permalink
Merge pull request #63 from Sudha247/5.00-ci
Browse files Browse the repository at this point in the history
Run CI with trunk OCaml
  • Loading branch information
kayceesrk authored Jan 20, 2022
2 parents df4afa2 + 00f016c commit 20d9f74
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,37 @@ jobs:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 4.12.0+domains
- 4.12.0+domains+effects
- 5.00.0+trunk

runs-on: ${{ matrix.os }}

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

- name: Get latest Multicore commit hash
- name: Get latest OCaml commit hash
id: multicore_hash
shell: bash
run: |
curl -sH "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/ocaml-multicore/ocaml-multicore/commits/4.12+domains+effects \
https://api.github.com/repos/ocaml/ocaml/commits/trunk \
| jq .commit.tree.sha | xargs printf '::set-output name=commit::%s'
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ocaml-variants.${{ matrix.ocaml-compiler }}
opam-repositories: |
multicore: https://github.com/ocaml-multicore/multicore-opam.git
default: https://github.com/ocaml/opam-repository.git
ocaml-beta-repository: https://github.com/ocaml/ocaml-beta-repository.git
cache-prefix: ${{ steps.multicore_hash.outputs.commit }}
opam-depext: false

- run: opam pin add dune --dev-repo

- run: opam pin add ocamlfind git+https://github.com/ocaml/ocamlfind.git

- run: opam install . --deps-only --with-test

- run: opam exec -- make all

- run: opam exec -- make run_test
- run: opam exec -- make run_test
4 changes: 2 additions & 2 deletions lib/task.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open EffectHandlers
open EffectHandlers.Deep
open Effect
open Effect.Deep

type 'a task = unit -> 'a

Expand Down

0 comments on commit 20d9f74

Please sign in to comment.