diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fc245ce..3489c09 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/protokit_build/src/lib.rs b/protokit_build/src/lib.rs index 147ee4d..e93b41a 100644 --- a/protokit_build/src/lib.rs +++ b/protokit_build/src/lib.rs @@ -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)) }