Skip to content

Commit

Permalink
Add GitHub CI workflow for kind2-mcil
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-larraz committed Oct 10, 2023
1 parent 6b7e107 commit 09c904c
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/kind2-mcil.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

name: Kind2-MCIL CI

on:
pull_request:
branches: [ mcil ]
push:
branches: [ mcil ]

jobs:
kind2-build:
strategy:
matrix:
ocaml-version: [ 4.09.1 ]
os: [ ubuntu-20.04, macos-11 ]
include:
- os: macos-11
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@v2

#- 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: Pin MCIL version of Dolmen packages
run: |
opam pin -y add dolmen https://github.com/daniel-larraz/dolmen.git#mcil
opam pin -y add dolmen_type https://github.com/daniel-larraz/dolmen.git#mcil
opam pin -y add dolmen_loop https://github.com/daniel-larraz/dolmen.git#mcil
- name: Install Kind2-MCIL OCaml dependencies
run: opam install -y . --deps-only

- name: Build all binaries
run: opam exec make

- name: Rename cmc binary
run: mv bin/cmc bin/kind2-mcil

- name: Upload kind2-mcil artifact
uses: actions/upload-artifact@v2
with:
name: kind2-mcil-${{ matrix.os }}
path: bin/kind2-mcil

0 comments on commit 09c904c

Please sign in to comment.