Add new build using setup ocaml action #1
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
# 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.0.0 | |
- name: Install dependencies | |
run: | | |
eval $(opam env) | |
export OPAMYES=1 | |
opam switch import opam.export | |
working-directory: ./source | |
- name: Build Release | |
run: | | |
opam exec dune build @src/fmt --auto-promote src --profile release | |
working-directory: ./source |