Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: CI

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Cache opam and binaries
uses: actions/cache@v3
with:
path: |
~/.opam
~/bin
key: ${{ runner.os }}-opam-${{ hashFiles('**/*.opam') }}
restore-keys: |
${{ runner.os }}-opam-

- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y aspcud z3

- name: Setup PATH and directories
run: |
mkdir -p $HOME/bin
echo "$HOME/bin" >> $GITHUB_PATH

- name: Install CVC4
run: |
if ! which cvc4; then
wget --quiet --no-clobber http://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/cvc4-1.7-x86_64-linux-opt \
-O $HOME/bin/cvc4
chmod +x $HOME/bin/cvc4
fi

- name: Install OPAM
run: |
if ! which opam; then
wget --quiet --no-clobber https://github.com/ocaml/opam/releases/download/2.0.8/opam-2.0.8-x86_64-linux \
-O $HOME/bin/opam
chmod +x $HOME/bin/opam
fi

- name: Install E-prover
run: |
if ! which eprover; then
wget https://github.com/eprover/eprover/archive/E-2.5.tar.gz
tar xzvf E-2.5.tar.gz
cd eprover-E-2.5
./configure --prefix=$HOME
make -j$(nproc)
sudo make install
fi

- name: Initialize OPAM
run: |
opam init --auto-setup --disable-sandboxing --compiler=4.10.0
opam install --yes depext

- name: Install OPAM packages
run: |
opam repo add ispras https://forge.ispras.ru/git/astraver.opam-repository.git || true
opam update
opam upgrade --yes
opam depext --yes --noninteractive --install frama-c astraver why3 alt-ergo
rm -fr ~/.opam/log

- name: Configure Why3
run: |
eval $(opam env)
why3 config --detect
sed -i -e 's/running_provers_max = [[:digit:]]/running_provers_max = 1/' $HOME/.why3.conf

- name: Run tests
run: |
eval $(opam env)
make run
make rte
make val
make sprove-proved-separatedly
make replay-proved-separatedly
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# VerKer
[![Replay Status](https://travis-ci.org/evdenis/verker.svg?branch=master)](https://travis-ci.org/evdenis/verker)
[![CI](https://github.com/evdenis/verker/actions/workflows/ci.yml/badge.svg)](https://github.com/evdenis/verker/actions/workflows/ci.yml)

To view this file in Russian, please follow the [link](README_ru.md).

Expand Down
2 changes: 1 addition & 1 deletion README_ru.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# VerKer
[![Replay Status](https://travis-ci.org/evdenis/verker.svg?branch=master)](https://travis-ci.org/evdenis/verker)
[![CI](https://github.com/evdenis/verker/actions/workflows/ci.yml/badge.svg)](https://github.com/evdenis/verker/actions/workflows/ci.yml)

ACSL cпецификации к библиотечным функциям ядра Linux

Expand Down
Loading