forked from GitHub/bdwgc-rust
Test build on CI
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 }
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user