diff --git a/.circleci/config.yml b/.circleci/config.yml index ef753981e2..8e2e2ea7ef 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -228,7 +228,7 @@ jobs: - run: name: Build and install Leo no_output_timeout: 30m - command: cargo install --path . --locked + command: cargo install --path . --root . --locked - persist_to_workspace: root: ~/ paths: diff --git a/.circleci/leo-example.sh b/.circleci/leo-example.sh index 2e794f8121..8fbce490c0 100755 --- a/.circleci/leo-example.sh +++ b/.circleci/leo-example.sh @@ -1,3 +1,9 @@ +# Alias the leo command to use the local binary. +# Note: Use a full path for $LEO when running locally. +leo() { + $LEO "$@" +} + ( # Create a new Leo lottery example program. $LEO example lottery || exit