Skip to content

Commit

Permalink
avoid ffmpeg dependency for clippy CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahirner committed Nov 20, 2022
1 parent 869db71 commit 9e72a0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
pip install pre-commit
pre-commit install
- run: pre-commit run --all-files --show-diff-on-failure
env:
INFUR_NO_TEST_GEN: 1
test:
strategy:
matrix:
Expand Down
7 changes: 6 additions & 1 deletion infur-test-gen/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ fn make_younger(file: impl AsRef<Path>) {
pub fn main() {
println!("cargo:rerun-if-changed=build.rs");

//let out_dir = env::var_os("OUT_DIR").unwrap();
// set in CI to avoid ffmpeg dependency on clippy runs
println!("cargo:rerun-if-env-changed=INFUR_NO_TEST_GEN");
if std::env::var("INFUR_NO_TEST_GEN").ok().as_deref() == Some("1") {
return;
};

let gen_root = PathBuf::from(&env::var("CARGO_MANIFEST_DIR").unwrap());
let gen_root =
Path::new(&gen_root).parent().expect("wanted parent of manifest for generating test files");
Expand Down

0 comments on commit 9e72a0e

Please sign in to comment.