-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new build using setup ocaml action
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# 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 |