feat: use Dream #28
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: "Main workflow" | |
on: | |
pull_request: | |
branches: | |
- "master" | |
push: | |
branches: | |
- "master" | |
jobs: | |
nix-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: nix build | |
- name: Build static | |
run: nix build .#static | |
- name: Test | |
run: nix develop --command dune runtest | |
- name: Check | |
run: nix flake check | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ocaml/setup-ocaml@v2 | |
with: | |
# Gmp built with musl is required to get the static binary. | |
# Obtaining it through Opam is difficult, so building static binary is | |
# not checked here for now. | |
ocaml-compiler: "5.0" | |
- run: opam install . --deps-only --with-test | |
- name: Build | |
run: opam exec -- dune build | |
- name: Test | |
run: opam exec -- dune runtest |