fix: protoc dependency for ci

This commit is contained in:
Jazz Turner-Baggs 2026-06-13 08:03:50 -07:00
parent 1ec08198a6
commit dbde72f261
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
# hashgraph-like-consensus's build.rs shells out to protoc via prost-build.
- run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
# chat-cli's build.rs unconditionally links liblogosdelivery and requires
# LOGOS_DELIVERY_LIB_DIR. The smoketest job builds and exercises it under
# Nix; here we keep the toolchain-only job fast by skipping it.
@ -31,6 +33,8 @@ jobs:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: rustup component add clippy
# hashgraph-like-consensus's build.rs shells out to protoc via prost-build.
- run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- run: cargo clippy --all-targets --all-features --workspace --exclude chat-cli -- -D warnings
fmt:

View File

@ -59,7 +59,7 @@
};
};
nativeBuildInputs = [ pkgs.perl pkgs.pkg-config pkgs.cmake ];
nativeBuildInputs = [ pkgs.perl pkgs.pkg-config pkgs.cmake pkgs.protobuf ];
buildType = "release";
doCheck = false;
cargoBuildFlags = [ "--workspace" "--exclude" "chat-cli" ];
@ -95,6 +95,7 @@
pkgs.pkg-config
pkgs.cmake
pkgs.perl
pkgs.protobuf
];
};
}