Skip to content

Develop the package system #1939

Develop the package system

Develop the package system #1939

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- "4.14"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Cache locks
uses: actions/cache@v4
id: locks-cache
with:
path: ~/.satysfi/cache
key: cache-locks-${{ hashFiles('default-registry-commit-hash.txt') }}
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
allow-prerelease-opam: true
opam-repositories: |
satysfi-external: https://github.com/gfngfn/satysfi-external-repo.git
default: https://github.com/ocaml/opam-repository.git
- name: Install SATySFi dependencies
run: opam install . --deps-only --with-doc --with-test
- name: Build SATySFi
run: opam exec -- make all
- name: Run tests
run: opam exec -- dune runtest
- name: Install SATySFi
run: |
opam install -y .
if [ "${{ matrix.os }}" == 'macos-latest' ]; then
./install-libs.sh ~/.satysfi ginstall
else
./install-libs.sh ~/.satysfi install
fi
- name: Check library packages
run: |
opam exec -- make test-packages
- name: Build demo docs
run: |
(cd demo; opam exec -- make)
(cd doc; opam exec -- make)
- name: Run integration tests
run: |
(cd tests; opam exec -- make)