diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..3807110 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,31 @@ +name: "main" + +on: + workflow_dispatch: + pull_request: + push: + +permissions: + id-token: write + contents: read + statuses: write + +jobs: + build: + strategy: + matrix: + os: + - ubuntu-latest + ocaml-compiler: + - "5.1" + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up OCaml ${{ matrix.ocaml-compiler }} + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + - run: opam install . --deps-only --with-test + - run: opam exec -- dune build + - run: opam exec -- dune build @fmt