Skip to content

Commit

Permalink
ci: implement @smorimoto workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Dec 29, 2023
1 parent 5c50fc3 commit 9f61f9f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build & Test

on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
ocaml-compiler:
- "5.1"
allow-prerelease-opam:
- true
opam-repositories:
- |-
default: https://github.com/ocaml/opam-repository.git
# include:
# - os: windows-latest
# ocaml-compiler: ocaml-variants.5.1.0+options,ocaml-option-mingw
# allow-prerelease-opam: false
# opam-repositories: |-
# windows-5.0: https://github.com/dra27/opam-repository.git#windows-5.0
# sunset: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
# default: https://github.com/ocaml/opam-repository.git

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

steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: ${{ matrix.allow-prerelease-opam }}
opam-repositories: ${{ matrix.opam-repositories }}

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

- run: opam exec -- dune build

- run: opam exec -- dune test

0 comments on commit 9f61f9f

Please sign in to comment.