Skip to content

Commit

Permalink
fix: Install protoc in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
semtexzv committed Sep 14, 2023
1 parent d5a59e8 commit a484379
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Vendor
run: ./scripts/vendor.sh

- name: Prepare
run: apt-get update && apt-get install protobuf-compiler

- name: Build
run: RUST_BACKTRACE=full cargo build

Expand Down
2 changes: 1 addition & 1 deletion protokit_build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl ProtocContext {
}

cmd.arg(format!("-o{}/descriptor.bin", std::env::var("OUT_DIR").unwrap()));
let out = cmd.output().unwrap();
let out = cmd.output().expect("PROTOC invocation failed");
if !out.status.success() {
bail!("Protoc error: {}", String::from_utf8_lossy(&out.stderr))
}
Expand Down

0 comments on commit a484379

Please sign in to comment.