Skip to content

Commit 931c40e

Browse files
remi-delmas-3000Remi Delmas
andauthored
Install the right toolchain for HEAD and BASE checks in verify-std-check.yml (#3920)
The versions of the toolchain and deps can differ between BASE and HEAD versions and we build twice, so we ensure the right versions are installed. Co-authored-by: Remi Delmas <delmasrd@amazon.com>
1 parent 9ee764f commit 931c40e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/verify-std-check.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,24 @@ jobs:
6262
-Z mem-predicates -Z loop-contracts --enable-unstable --cbmc-args --object-bits 12
6363
6464
# If the head failed, check if it's a new failure.
65-
- name: Checkout base
65+
- name: Checkout BASE
6666
working-directory: kani
6767
if: steps.check-head.outcome != 'success' && github.event_name == 'pull_request'
6868
run: |
6969
BASE_REF=${{ github.event.pull_request.base.sha }}
7070
git checkout ${BASE_REF}
71+
72+
- name: Setup Kani Dependencies BASE
73+
uses: ./kani/.github/actions/setup
74+
if: steps.check-head.outcome != 'success' && github.event_name == 'pull_request'
75+
with:
76+
os: ${{ matrix.os }}
77+
kani_dir: kani
78+
79+
- name: Build Kani BASE
80+
working-directory: kani
81+
if: steps.check-head.outcome != 'success' && github.event_name == 'pull_request'
82+
run: |
7183
cargo build-dev
7284
7385
- name: Run verification with BASE

0 commit comments

Comments
 (0)