Skip to content

Commit

Permalink
Upgrade tonic and prost to latest
Browse files Browse the repository at this point in the history
This has the side effect to add the protobuf compiler as a build
requirement. It also removes the need for rustfmt during build.

Signed-off-by: Nicolas Belouin <[email protected]>
  • Loading branch information
diconico07 committed Apr 27, 2023
1 parent 2be4280 commit cd0a7a8
Show file tree
Hide file tree
Showing 19 changed files with 847 additions and 309 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Install Linux requirements
run: |
apt_dependencies="git curl libssl-dev pkg-config libudev-dev libv4l-dev"
apt_dependencies="git curl libssl-dev pkg-config libudev-dev libv4l-dev protobuf-compiler"
echo "Run apt update and apt install the following dependencies: $apt_dependencies"
sudo apt update
sudo apt install -y $apt_dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
components: clippy, rustfmt
- name: Install Linux requirements
run: |
apt_dependencies="git curl libssl-dev pkg-config libudev-dev libv4l-dev"
apt_dependencies="git curl libssl-dev pkg-config libudev-dev libv4l-dev protobuf-compiler"
echo "Run apt update and apt install the following dependencies: $apt_dependencies"
sudo apt update
sudo apt install -y $apt_dependencies
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/run-tarpaulin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ jobs:
- name: Start tarpaulin instance
run: docker start $(cat container_id.txt)
- name: Install linux requirement in tarpaulin instance
run: docker exec $(cat container_id.txt) sh -c "echo Run apt update and apt install the following dependencies - git curl libssl-dev pkg-config libudev-dev libv4l-dev ; apt update ; apt install -y git curl libssl-dev pkg-config libudev-dev libv4l-dev"
run: docker exec $(cat container_id.txt) sh -c "echo Run apt update and apt install the following dependencies - git curl libssl-dev pkg-config libudev-dev libv4l-dev protobuf-compiler ; apt update ; apt install -y git curl libssl-dev pkg-config libudev-dev libv4l-dev protobuf-compiler"
- name: Install desired rust version
run: docker exec $(cat container_id.txt) sh -c "rustup install $CARGO_VERSION"
- name: Tell cargo to use desired rust version
run: docker exec $(cat container_id.txt) sh -c "rustup override set $CARGO_VERSION"
- name: Install rust requirements in tarpaulin instance
run: docker exec $(cat container_id.txt) sh -c "rustup component add rustfmt"
- name: Run tarpaulin
run: docker exec $(cat container_id.txt) sh -c "RUST_LOG=trace cargo tarpaulin -v --all-features --out Xml"

Expand Down
181 changes: 142 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd0a7a8

Please sign in to comment.