Skip to content

Commit

Permalink
feat(gha): build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjbray committed Apr 28, 2024
1 parent b427d3b commit d393807
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 install ocamlformat=0.22.4
- run: opam exec -- dune build @fmt

0 comments on commit d393807

Please sign in to comment.