wip #1141
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: opam | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] # optional: limit push events | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: | |
| - ubuntu-24.04 # ← Updated from 22.04 | |
| ocaml-version: | |
| - "5.4" # ← Strongly recommended bump | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 # ← Updated from v2 | |
| - name: Use OCaml ${{ matrix.ocaml-version }} | |
| uses: ocaml/setup-ocaml@v3 # ← Updated action (official & maintained) | |
| with: | |
| ocaml-compiler: ${{ matrix.ocaml-version }} | |
| - name: Install system dependencies | |
| run: opam depext anders --yes | |
| - name: Install dependencies | |
| run: opam install . --deps-only | |
| - name: Build | |
| run: opam exec -- dune build | |
| - name: Install package | |
| run: opam install . | |
| - name: Run tests / checks | |
| run: opam exec -- dune exec anders silent check library/book.anders |