Skip to content

Array length constraints, update node call type checking context #1272

Array length constraints, update node call type checking context

Array length constraints, update node call type checking context #1272

Workflow file for this run

name: Kind2 CI
on:
pull_request:
branches: [ develop ]
push:
branches: [ develop ]
jobs:
kind2-build:
strategy:
matrix:
os: [ ubuntu-20.04, macos-12 ]
ocaml-version: [ 4.09.1 ]
include:
- os: macos-12
pkg_update: brew update
- os: ubuntu-20.04
pkg_update: sudo apt-get update -y
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Update package information
run: ${{ matrix.pkg_update }}
- name: Set up OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
- name: Install Kind2 OCaml dependencies
run: opam install -y . --deps-only
- name: Build Kind2
run: opam exec make
- name: Install Z3 (Ubuntu)
if: runner.os == 'Linux'
run: |
Z3_VERSION=4.12.2
Z3_OS_VERSION=x64-glibc-2.31
Z3_ZIP_NAME=z3-$Z3_VERSION-$Z3_OS_VERSION
wget -q https://github.com/Z3Prover/z3/releases/download/z3-$Z3_VERSION/$Z3_ZIP_NAME.zip
unzip -q $Z3_ZIP_NAME.zip
sudo cp $Z3_ZIP_NAME/bin/z3 /usr/bin/
- name: Install Z3 (macOS)
if: runner.os == 'macOS'
run: brew install z3
- name: Install unit test dependencies
run: opam install ounit2
- name: Run ounit and regression tests
run: opam exec make test
- name: Upload kind2 artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
uses: actions/upload-artifact@v3
with:
name: kind2-${{ matrix.os }}
path: bin/kind2