From 8f0b824037df78514eaf0384e633382298fe0faf Mon Sep 17 00:00:00 2001 From: Luciano Mammino Date: Sun, 29 Oct 2023 12:06:07 +0000 Subject: [PATCH] chore: installing cargo-lambda in ci only if missing --- .github/workflows/rust.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a0c0b7e..3c26d98 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -79,7 +79,13 @@ jobs: key: ${{ runner.os }}-rust-build-${{ hashFiles('**/Cargo.lock') }} - name: Install cargo lambda - run: cargo install --locked cargo-lambda + run: | + if [ ! -f ~/.cargo/bin/cargo-lambda ] + then + cargo install --locked cargo-lambda + elif + echo "Cargo Lambda already installed" + fi - name: Run cargo lambda build run: cargo lambda build --locked --release \ No newline at end of file