Test build on CI

This commit is contained in:
Yota Toyama
2019-09-30 21:53:45 -07:00
parent daa9d4c209
commit 38958d3138
3 changed files with 9 additions and 7 deletions

View File

@@ -8,3 +8,6 @@ jobs:
- run: git submodule update --init --recursive - run: git submodule update --init --recursive
- run: cargo build - run: cargo build
- run: cd examples && ./test.sh - run: cd examples && ./test.sh
- run: |
git clean -dfx
cargo build --no-default-features --features cmake

View File

@@ -15,5 +15,5 @@ default = ["autotools"]
libc = "0.2" libc = "0.2"
[build-dependencies] [build-dependencies]
autotools = {version = "0.2", optional = true} autotools = { version = "0.2", optional = true }
cmake = {version = "0.1", optional = true} cmake = { version = "0.1", optional = true }

View File

@@ -12,12 +12,11 @@ This crate is for use cases in which developers need to integrate [`bdwgc`][bdwg
See [`examples`](examples) directory. See [`examples`](examples) directory.
By default [`bdwgc`][bdwgc] is built with autotools. To build with cmake enable the `cmake` feature in `Cargo.toml`: By default [`bdwgc`][bdwgc] is built with autotools. To build with cmake, enable the `cmake` feature:
[dependencies.bdwgc-alloc] ```sh
version = "0.4" cargo build --no-default-features --features cmake
default-features = false ```
features = ["cmake"]
## License ## License