From 0054e18af751f8d787cb096461f5a41b66d8636f Mon Sep 17 00:00:00 2001 From: Alexander Bandukwala <7h3kk1d@gmail.com> Date: Thu, 25 Jul 2024 12:44:24 -0400 Subject: [PATCH] Add new build using setup ocaml action --- .github/workflows/new_build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/new_build.yml diff --git a/.github/workflows/new_build.yml b/.github/workflows/new_build.yml new file mode 100644 index 0000000000..04af22b456 --- /dev/null +++ b/.github/workflows/new_build.yml @@ -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/branch-name@v1.0.1 + - 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 \ No newline at end of file