Skip to content

Merge branch 'master' into lwt-6 #1268

Merge branch 'master' into lwt-6

Merge branch 'master' into lwt-6 #1268

Workflow file for this run

ame: Builds, tests

Check failure on line 1 in .github/workflows/workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/workflow.yml

Invalid workflow file

(Line: 1, Col: 1): Unexpected value 'ame'
on:
pull_request:
push:
branches:
- master
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- "4.14"
- "5.0"
- "5.1"
- "5.2"
- "5.3"
- "5.4"
libev:
- true
- false
include:
- os: ubuntu-24.04-arm
ocaml-compiler: "5.4"
libev: false
- os: macos-latest
ocaml-compiler: "5.4"
libev: false
- os: windows-latest
ocaml-compiler: "5.4"
libev: false
- os: ubuntu-latest
ocaml-name: "5.4.0+32bit"
ocaml-compiler: "ocaml-variants.5.4.0+options,ocaml-option-32bit"
libev: false
runs-on: ${{ matrix.os }}
name:
${{ matrix.ocaml-name != '' && matrix.ocaml-name || matrix.ocaml-compiler}} / ${{ matrix.os }} / libev=${{ matrix.libev}}
steps:
- name: Checkout tree
uses: actions/checkout@v5
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: set ppx-related variables
id: configpackages
shell: bash
run: |
opam exec -- ocaml src/util/letppx.ml
opam exec -- ocaml src/util/letppx.ml >> "$GITHUB_OUTPUT"
- run: opam install conf-libev
if: ${{ matrix.libev == true }}
- run: opam install ./lwt.opam ./lwt_react.opam ./lwt_retry.opam ./lwt_ppx.opam --deps-only --with-test
- run: opam install ./lwt_ppx__ppx_let_tests.opam --deps-only --with-test
if: ${{ fromJSON(steps.configpackages.outputs.letppx) }}
- run: opam install ./lwt_direct.opam --deps-only --with-test
if: ${{ fromJSON(steps.configpackages.outputs.direct) }}
- run: opam install ./lwt_runtime_evetns.opam --deps-only --with-test
if: ${{ fromJSON(steps.configpackages.outputs.runtime_events) }}
- run: opam exec -- dune build --only-packages lwt,lwt_react,lwt_retry
- run: opam exec -- dune build --only-packages lwt,lwt_ppx__ppx_let_tests
if: ${{ fromJSON(steps.configpackages.outputs.letppx) }}
- run: opam exec -- dune build --only-packages lwt,lwt_direct
if: ${{ fromJSON(steps.configpackages.outputs.direct) }}
- run: opam exec -- dune build --only-packages lwt,lwt_runtime_events
if: ${{ fromJSON(steps.configpackages.outputs.runtime_events) }}
- run: opam exec -- dune runtest --only-packages lwt,lwt_react,lwt_retry,lwt_ppx
- run: opam exec -- dune runtest --only-packages lwt,lwt_ppx__ppx_let_tests
if: ${{ fromJSON(steps.configpackages.outputs.letppx) }}
- run: opam exec -- dune runtest --only-packages lwt,lwt_direct
if: ${{ fromJSON(steps.configpackages.outputs.direct) }}
- run: opam exec -- dune runtest --only-packages lwt,lwt_runtime_events
if: ${{ fromJSON(steps.configpackages.outputs.runtime_events) }}