Skip to content

Prepare for Better Windows Support #1970

Prepare for Better Windows Support

Prepare for Better Windows Support #1970

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
- windows-latest
ocaml-compiler:
- "4.14"
- "5.2"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set SHELLOPTS=igncr on Windows
if: runner.os == 'Windows'
run: echo "SHELLOPTS=igncr" >>"$GITHUB_ENV"
- 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)