Skip to content

Commit 52a943a

Browse files
authored
Avoid cloning kani submodules and fix enable-propproof flag (#24)
1 parent b1a2a98 commit 52a943a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

action.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,19 @@ runs:
4747
cargo-kani setup;
4848
4949
- name: Install PropProof
50-
if: ${{ inputs.enable-propproof }}
50+
if: ${{ inputs.enable-propproof == 'true' }}
51+
uses: actions/checkout@v3
52+
with:
53+
repository: model-checking/kani
54+
ref: features/proptest
55+
path: propproof
56+
submodules: true
57+
58+
- name: Add PropProof to config
59+
if: ${{ inputs.enable-propproof == 'true' }}
5160
shell: bash
5261
run: |
53-
export PROPPROOF_PATH=$HOME/propproof
54-
git clone https://github.com/model-checking/kani \
55-
--branch features/proptest $PROPPROOF_PATH || true
56-
git -C $PROPPROOF_PATH submodule update --init --recursive
57-
echo "paths = [\"$PROPPROOF_PATH\"]" > $HOME/.cargo/config.toml
58-
# || true is used to handle cases where the propproof folder is cached.
62+
echo "paths = [\"$GITHUB_WORKSPACE/propproof\"]" > $HOME/.cargo/config.toml
5963
6064
- name: Run Kani
6165
shell: bash

0 commit comments

Comments
 (0)