Skip to content

Commit 7ec47a3

Browse files
committed
Add CI testing for no-oslib.
1 parent 5878315 commit 7ec47a3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,38 @@ jobs:
4848
- target/debug/build
4949
- target/debug/deps
5050
key: cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
51+
build-no-oslib:
52+
docker:
53+
- image: circleci/rust:latest
54+
steps:
55+
- checkout
56+
- run:
57+
name: Install libclang for bindgen
58+
command: |
59+
sudo apt-get update
60+
sudo apt-get install libclang-dev clang
61+
- run:
62+
name: Version information
63+
command: rustc --version; cargo --version; rustup --version
64+
- run:
65+
name: Calculate dependencies
66+
command: cargo generate-lockfile
67+
- restore_cache:
68+
keys:
69+
- cargo-cache-no-oslib-{{ arch }}-{{ checksum "Cargo.lock" }}
70+
- run:
71+
name: Build all targets
72+
command: cargo build --features=lua-no-oslib --all --all-targets
73+
- run:
74+
name: Run all tests
75+
command: cargo test --features=lua-no-oslib --all
76+
- save_cache:
77+
paths:
78+
- /usr/local/cargo/registry
79+
- target/debug/.fingerprint
80+
- target/debug/build
81+
- target/debug/deps
82+
key: cargo-cache-no-oslib-{{ arch }}-{{ checksum "Cargo.lock" }}
5183
build-lua53:
5284
docker:
5385
- image: circleci/rust:latest
@@ -186,3 +218,4 @@ workflows:
186218
- "build-lua53"
187219
- "build-lua51"
188220
- "build-windows"
221+
- "build-no-oslib"

0 commit comments

Comments
 (0)