update README #127
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: Build Development | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| permissions: | |
| contents: read | |
| actions: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: 5.4.0 | |
| dune-cache: true | |
| - name: Load cache | |
| id: cache-opam-restore | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: _opam | |
| key: ${{ runner.os }}-opam-5.4.0-${{ hashFiles('*.opam') }} | |
| - name: Add opam repositories | |
| if: steps.cache-opam-restore.outputs.cache-hit != 'true' | |
| run: | | |
| opam repo add rocq-released https://rocq-prover.github.io/opam/released/ | |
| opam repo add iris-dev https://gitlab.mpi-sws.org/iris/opam.git | |
| opam update | |
| - name: Install dependencies | |
| if: steps.cache-opam-restore.outputs.cache-hit != 'true' | |
| run: opam install . --deps-only | |
| - name: Cache dependencies | |
| if: steps.cache-opam-restore.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@v5 | |
| with: | |
| path: _opam | |
| key: ${{ runner.os }}-opam-5.4.0-${{ hashFiles('*.opam') }} | |
| - name: Compile & Test | |
| run: | | |
| eval $(opam env) | |
| make ci |