Prepare for Better Windows Support #1969
Workflow file for this run
This file contains 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: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
name: Build | |
env: | |
SHELLOPTS: igncr | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
ocaml-compiler: | |
- "4.14" | |
- "5.2" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout tree | |
uses: actions/checkout@v4 | |
- name: Cache dist fonts | |
uses: actions/cache@v4 | |
id: fonts-cache | |
with: | |
path: lib-satysfi/dist/fonts | |
key: cache-dist-fonts-${{ hashFiles('download-fonts.sh') }} | |
- name: Set-up OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v3 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
dune-cache: true | |
opam-repositories: | | |
satysfi-external: git+https://github.com/gfngfn/satysfi-external-repo.git | |
default: git+https://github.com/ocaml/opam-repository.git | |
- name: Install SATySFi dependencies | |
run: opam install . --deps-only | |
- name: Build SATySFi | |
run: opam exec -- make all | |
- name: Run tests | |
run: opam exec -- dune runtest | |
- name: Download fonts | |
if: steps.fonts-cache.outputs.cache-hit != 'true' | |
run: ./download-fonts.sh | |
- name: Install SATySFi | |
run: | | |
opam install . | |
./install-libs.sh ~/.satysfi | |
- name: Build demo docs | |
run: | | |
(cd demo; opam exec -- make) | |
(cd doc; opam exec -- make) | |
(cd tests; opam exec -- make) |