ci: use nix #2
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: Build with opam | |
on: | |
push: | |
paths: [ '*.opam' ] | |
pull_request: | |
paths: [ '*.opam' ] | |
workflow_dispatch: | |
# only run one instance of this action at a time. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: 4.09 | |
- run: opam install . --deps-only --with-test | |
- run: dune build --profile release | |