Skip to content

Switch install dependencies method #6

Switch install dependencies method

Switch install dependencies method #6

Workflow file for this run

# General notes on github actions: Note that both the working directory
# and environment variables generally are not shared between steps.
name: Build using setup ocaml
on: [push]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the hazel repo on the current branch
uses: actions/checkout@v2
with:
path: source
- name: Add the name of the current branch to the environment as BRANCH_NAME
uses: nelonoel/[email protected]
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5.2.0
- name: Install dependencies
run: |
eval $(opam env)
export OPAMYES=1
opam install ./hazel.opam.locked --deps-only --with-test
working-directory: ./source
- name: Build Release
run: |
opam exec dune build @src/fmt --auto-promote src --profile release
working-directory: ./source