-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathaction.yml
63 lines (55 loc) · 1.57 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright Kani Contributors
# SPDX-License-Identifier: Apache-2.0 OR MIT
name: 'Kani Rust Verifier'
description: 'Run the Kani Rust Verifier on a Rust Crate'
author: 'Kani Contributors'
branding:
icon: 'cloud'
color: 'orange'
inputs:
kani-version:
description: 'Kani Version number'
required: false
default: 'latest'
command:
description: 'Command to run.'
required: false
default: 'cargo-kani'
working-directory:
description: 'Directory to run kani on.'
required: false
default: '.'
args:
description: 'Arguments to pass to kani.'
required: false
default: ''
enable-propproof:
description: 'Experimental: Allow Kani to verify proptest harnesses using the PropProof feature'
required: false
default: false
runs:
using: "composite"
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Kani
run: ${{ github.action_path }}/src/install-kani.sh ${{ inputs.kani-version }}
shell: bash
- name: Install PropProof
if: ${{ inputs.enable-propproof == 'true' }}
uses: actions/checkout@v3
with:
repository: model-checking/kani
ref: features/proptest
path: propproof
submodules: true
- name: Add PropProof to config
if: ${{ inputs.enable-propproof == 'true' }}
shell: bash
run: |
echo "paths = [\"$GITHUB_WORKSPACE/propproof\"]" > $HOME/.cargo/config.toml
- name: Run Kani
shell: bash
run: |
cd ${{ inputs.working-directory }};
${{ inputs.command }} ${{ inputs.args }}