Skip to content

Commit

Permalink
Merge pull request #11 from crytic/dev-add-echidna-version
Browse files Browse the repository at this point in the history
Print echidna version when the action runs
  • Loading branch information
elopez authored Aug 5, 2022
2 parents 95e4fc1 + 1eef50c commit 7008636
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

set -eu

export PYTHONPATH=/root/.local/lib/python3.6/site-packages

OPTIONS="contract config format corpus-dir test-limit test-mode shrink-limit \
seq-len contract-addr deployer sender seed crytic-args solc-args"

Expand Down Expand Up @@ -32,14 +30,16 @@ for SWITCH in $SWITCHES; do
fi
done

echo "Echidna version: $(echidna-test --version)" >&2
echo "Echidna command line: ${CMD[@]}" >&2
echo >&2

SOLC_VERSION="$(get 'INPUT_SOLC-VERSION')"
if [[ -n "$SOLC_VERSION" ]]; then
solc-select install "$SOLC_VERSION"
solc-select use "$SOLC_VERSION"
fi

echo "${CMD[@]}" >&2

OUTPUT_FILE="$(get 'INPUT_OUTPUT-FILE')"
if [[ -n "$OUTPUT_FILE" ]]; then
echo "::set-output name=output-file::$OUTPUT_FILE"
Expand Down

0 comments on commit 7008636

Please sign in to comment.