Skip to content

Commit

Permalink
[ci] fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed May 10, 2024
1 parent a6a7296 commit 630a85d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
am-test:
name: am-test
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: checkout
uses: actions/checkout@v2
Expand Down
6 changes: 6 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ fn main() {
return;
}

// if we are running tests in CI, we don't need to generate the verilator code
if std::env::var("CI").is_ok() {
println!("cargo:test=1");
return;
}

let out_dir = env::var("OUT_DIR").unwrap();
let out_dir = PathBuf::from(out_dir);
let _ = fs::remove_dir_all(&out_dir);
Expand Down

0 comments on commit 630a85d

Please sign in to comment.