Skip to content

Commit

Permalink
Updated GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmottl committed Dec 8, 2024
1 parent d1478ba commit 83b0f0b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Main workflow
name: Builds, tests & co

on:
- pull_request
- push
- workflow_dispatch

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
ocaml-compiler: 5.2.0
- os: macos-latest
ocaml-compiler: 5.2.0
os:
- ubuntu-latest
- macos-latest

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

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

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: 5

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

- run: opam exec -- make
- run: opam exec -- dune build

- run: opam exec -- make -C test
- run: opam exec -- dune runtest
# vim: filetype=yaml

0 comments on commit 83b0f0b

Please sign in to comment.