Skip to content

Commit dcff66a

Browse files
committed
Add CI
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent a056cab commit dcff66a

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
checks:
6+
name: Checks
7+
runs-on: macos-10.15
8+
steps:
9+
- uses: actions/checkout@v2
10+
- run: rustup update stable
11+
- run: rustup component add rustfmt clippy
12+
- run: cargo fmt --all -- --check --files-with-diff
13+
- run: cargo clippy --all-targets --all-features -- -D warnings
14+
- run: cargo test --all-targets --all-features
15+
- run: cargo check

hv-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ fn main() {
99
.header("wrapper.h")
1010
.clang_arg(format!("-F{}/System/Library/Frameworks", show_sdk_path())) // -F<directory> Add framework to the search path
1111
.allowlist_function("hv_.*")
12+
.layout_tests(false)
1213
.generate()
1314
.expect("Failed to generate bindings")
1415
.write_to_file(out_path.join("bindings.rs"))

0 commit comments

Comments
 (0)