diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml new file mode 100644 index 0000000..e294d7b --- /dev/null +++ b/.github/workflows/bazel.yml @@ -0,0 +1,15 @@ +name: Build & Test with Bazel +on: [push, pull_request] +jobs: + build: + name: bazel build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: bazelisk build ... + test: + name: bazel test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: bazelisk test ... diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml new file mode 100644 index 0000000..b91cd0e --- /dev/null +++ b/.github/workflows/cargo.yml @@ -0,0 +1,19 @@ +name: Build & Test with Cargo +on: [push, pull_request] +jobs: + build: + name: cargo build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo build --all + - run: cargo build --all --examples + test: + name: cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo test --all + - run: cargo test --all --examples diff --git a/zvt/src/packets.rs b/zvt/src/packets.rs index 65f4831..e92d087 100644 --- a/zvt/src/packets.rs +++ b/zvt/src/packets.rs @@ -416,7 +416,7 @@ pub mod tests { use std::fs; pub fn get_bytes(name: &str) -> Vec { - let path_from_root = "rust/zvt/zvt/data/".to_string(); + let path_from_root = "zvt/data/".to_string(); let base_dir = match fs::metadata(&path_from_root) { Ok(_) => path_from_root, Err(_) => format!("data/"),