Skip to content

Commit

Permalink
chore: installing cargo-lambda in ci only if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Oct 29, 2023
1 parent 092d6c7 commit 8f0b824
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8f0b824

Please sign in to comment.