CI: hacking #28
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 master in docker (OCaml 5.2) | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| paths-ignore: | |
| - 'README.md' | |
| env: | |
| OPAMCONFIRMLEVEL: unsafe-yes | |
| GT_WITH_DOCS: yes | |
| OPAMROOT: /home/opam/.opam | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| docker: | |
| - ocaml/opam:ubuntu-lts-ocaml-5.2 | |
| - ocaml/opam:ubuntu-lts-ocaml-5.5 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.docker }} | |
| cancel-in-progress: true | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ${{ matrix.docker }} | |
| options: --user root | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 1 | |
| - run: | | |
| sudo apt-get update | |
| sudo apt-get install pkg-config libpcre2-dev m4 -y | |
| - run: mv `which opam-dev` `which opam` | |
| - run: opam --version | |
| - name: bisect many not work without it | |
| if: false #we will not run coverage in 5.2 | |
| run: | | |
| git config --global --add safe.directory /__w/GT/GT | |
| #git submodule update --init | |
| - run: opam install . --deps-only --with-test --with-doc | |
| - run: opam exec -- dune build @check --profile=release | |
| - run: opam exec -- dune test --profile=release | |
| - name: Installing using Opam | |
| run: | | |
| opam exec -- dune build @install | |
| opam exec -- dune install | |
| - name: List files | |
| run: opam show --list-files GT |