From 82585fa7ce81bb3752dd560fb301a42027843139 Mon Sep 17 00:00:00 2001 From: Pranav Gaddamadugu <23022326+d0cd@users.noreply.github.com> Date: Mon, 18 Nov 2024 19:35:26 -0800 Subject: [PATCH] Update examples CI script --- .circleci/config.yml | 2 +- .circleci/leo-example.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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