Skip to content

Commit

Permalink
Add new build using setup ocaml action
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Jul 25, 2024
1 parent 7ef5780 commit 0054e18
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/new_build.yml
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

0 comments on commit 0054e18

Please sign in to comment.