File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
# SPDX-License-Identifier: Apache-2.0 OR MIT
3
- name : Build Kani
4
- description : Install dependencies and build kani binaries
3
+ name : Setup Kani Dependencies
5
4
inputs :
6
5
os :
7
6
description : In which Operating System is this running
8
7
required : true
9
- default : ubuntu-20.04
10
8
runs :
11
9
using : composite
12
10
steps :
11
+ # This is unfortunate, but cbmc-viewer currently requires Python >= 3.8
12
+ - name : Install Python 3.9
13
+ uses : actions/setup-python@v2
14
+ with :
15
+ python-version : ' 3.9'
16
+
13
17
- name : Install dependencies
14
18
run : ./scripts/setup/${{ inputs.os }}/install_deps.sh
15
19
shell : bash
30
34
run : |
31
35
git submodule update --init --depth 1
32
36
shell : bash
33
-
34
- - name : Build Kani and Kani Library
35
- run : |
36
- export RUST_BACKTRACE=1
37
- cargo build
38
- shell : bash
39
-
Original file line number Diff line number Diff line change @@ -12,15 +12,17 @@ jobs:
12
12
steps :
13
13
- name : Checkout Kani
14
14
uses : actions/checkout@v2
15
- - uses : actions/setup-python@v2
16
- with :
17
- python-version : ' 3.9'
18
15
19
- - name : Build Kani
20
- uses : ./.github/actions/build
16
+ - name : Setup Kani Dependencies
17
+ uses : ./.github/actions/setup
21
18
with :
22
19
os : ${{ matrix.os }}
23
20
21
+ - name : Build Kani
22
+ run : |
23
+ export RUST_BACKTRACE=1
24
+ cargo build
25
+
24
26
- name : Execute Kani regression
25
27
run : ./scripts/kani-regression.sh
26
28
@@ -32,11 +34,16 @@ jobs:
32
34
- name : Checkout Kani
33
35
uses : actions/checkout@v2
34
36
35
- - name : Build Kani
36
- uses : ./.github/actions/build
37
+ - name : Setup Kani Dependencies
38
+ uses : ./.github/actions/setup
37
39
with :
38
40
os : ubuntu-20.04
39
41
42
+ - name : Build Kani
43
+ run : |
44
+ export RUST_BACKTRACE=1
45
+ cargo build
46
+
40
47
- name : Install book runner dependencies
41
48
run : ./scripts/setup/install_bookrunner_deps.sh
42
49
You can’t perform that action at this time.
0 commit comments