mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-22 23:42:06 +00:00
fix: build proto in CI and avoid rate limit in client test
This commit is contained in:
parent
2ee4b9f77f
commit
814e07dffe
@ -2,8 +2,9 @@ use std::fs;
|
|||||||
|
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
println!("cargo:rerun-if-changed=../../proto/generate.proto");
|
println!("cargo:rerun-if-changed=../../proto/generate.proto");
|
||||||
// TODO: avoid this when building python library?
|
// conditionally compile proto files (avoid when bundling python package)
|
||||||
if false {
|
let skip_build = std::env::var("SKIP_BUILD").is_ok();
|
||||||
|
if skip_build {
|
||||||
fs::create_dir("src/pb").unwrap_or(());
|
fs::create_dir("src/pb").unwrap_or(());
|
||||||
|
|
||||||
let mut config = prost_build::Config::new();
|
let mut config = prost_build::Config::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user