Skip to content

Commit

Permalink
Avoid cloning kani submodules and fix enable-propproof flag (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhassan-aws authored Feb 15, 2023
1 parent b1a2a98 commit 52a943a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,19 @@ runs:
cargo-kani setup;
- name: Install PropProof
if: ${{ inputs.enable-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: |
export PROPPROOF_PATH=$HOME/propproof
git clone https://github.com/model-checking/kani \
--branch features/proptest $PROPPROOF_PATH || true
git -C $PROPPROOF_PATH submodule update --init --recursive
echo "paths = [\"$PROPPROOF_PATH\"]" > $HOME/.cargo/config.toml
# || true is used to handle cases where the propproof folder is cached.
echo "paths = [\"$GITHUB_WORKSPACE/propproof\"]" > $HOME/.cargo/config.toml
- name: Run Kani
shell: bash
Expand Down

0 comments on commit 52a943a

Please sign in to comment.