From 9e9f115a1ec2d8f5671d53f5dec8e469843c1250 Mon Sep 17 00:00:00 2001 From: Markus Mottl Date: Sun, 8 Dec 2024 18:23:22 -0500 Subject: [PATCH] Updated GitHub workflow --- .github/workflows/main.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83116a2..378ad40 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,33 +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 . --deps-only --with-test - - run: opam install -t --deps-only . + - run: opam exec -- dune build - - run: opam exec -- make + - run: opam exec -- dune runtest # vim: filetype=yaml