[Do not Merge] Implement PCG64
without using the uint128
type.
#137
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: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
build-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
ocaml-compiler: | |
- "5.1.1" | |
- "4.14.2" | |
fail-fast: false | |
name: Ocaml version - ${{ matrix.ocaml-compiler }} - ${{ matrix.os }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: setup-ocaml | |
uses: ocaml/setup-ocaml@master | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
- name: setup | |
run: | | |
opam install . --deps-only --with-test --with-doc --yes | |
- name: build library | |
run: opam exec -- dune build lib | |
- name: test | |
run: opam exec -- dune runtest --instrument-with bisect_ppx --force | |
- name: Upload code coverage report | |
run: opam exec -- bisect-ppx-report send-to Codecov | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: Run microbenchmarks | |
run: opam exec -- dune exec -- ./bin/bench.exe | |
- name: Build Docs | |
run: opam exec -- dune build @doc | |
- name: Upload API Docs artifact | |
uses: actions/[email protected] | |
with: | |
name: docs | |
path: ./_build/default/_doc/_html | |
- name: Deploy API Docs | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_build/default/_doc/_html |