Skip to content

Commit

Permalink
Changed Intall protoc step to only install if not already avaiable
Browse files Browse the repository at this point in the history
Idea is to have this dep already in the runner image, but not break github hosted runner compatibility.
  • Loading branch information
nachog00 committed Oct 22, 2024
1 parent e698ea1 commit dde48fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install protoc
run: sudo apt-get install protobuf-compiler
run: |
if ! command -v protoc &> /dev/null; then
sudo apt-get install -y protobuf-compiler
fi
- name: Cargo cache
uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit dde48fe

Please sign in to comment.