forked from kind2-mc/kind2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f13571
commit 61f7f90
Showing
2 changed files
with
51 additions
and
2 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,42 @@ | ||
name: Build Kind 2 | ||
description: Build Kind 2 on current runner | ||
inputs: | ||
ocaml-version: | ||
description: The OCaml compiler version | ||
flambda: | ||
default: false | ||
type: boolean | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Set OCaml compiler variant | ||
id: ocaml-variant | ||
shell: bash | ||
run: | | ||
echo "::group::Set OCaml compiler variant" | ||
if [[ "${{ inputs.flambda }}" == "true" ]]; then | ||
echo "compiler=ocaml-variants.${{ inputs.ocaml-version }}+options,ocaml-option-flambda" >> $GITHUB_OUTPUT | ||
echo "tag=${{ inputs.ocaml-version }}-flambda" >> $GITHUB_OUTPUT | ||
else | ||
echo "compiler=${{ inputs.ocaml-version }}" >> $GITHUB_OUTPUT | ||
echo "tag=${{ inputs.ocaml-version }}" >> $GITHUB_OUTPUT | ||
fi | ||
echo "::endgroup::" | ||
- name: Set up OCaml ${{ steps.ocaml-variant.outputs.tag }} | ||
shell: bash | ||
run: | | ||
echo "::group::Set OCaml compiler variant" | ||
wget -qq https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh | ||
echo "~/.local/bin" | sh install.sh | ||
opam init --disable-sandboxing --yes --compiler ${{ steps.ocaml-variant.outputs.compiler }} | ||
echo "::endgroup::" | ||
- name: Install OCaml dependencies | ||
shell: bash | ||
run: opam install -y . --deps-only | ||
|
||
- name: Build Kind2 | ||
shell: bash | ||
run: opam exec make |
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