Skip to content

Commit 36f8207

Browse files
committed
Build examples in CI before testing
1 parent 370e2df commit 36f8207

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@ env:
1717
CARGO_TERM_COLOR: always
1818

1919
jobs:
20+
build:
21+
name: Build
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: dtolnay/rust-toolchain@stable
26+
- run: cargo build --all-features
27+
2028
test:
2129
name: Test
2230
runs-on: ubuntu-latest
2331
steps:
2432
- uses: actions/checkout@v4
2533
- uses: dtolnay/rust-toolchain@stable
34+
- run: cd examples/basic && cargo build --all-features
35+
- run: cd examples/advanced && cargo build --all-features
2636
- run: cargo test --all-features
2737
- run: cargo run --example basic
2838
- run: cargo run --example advanced

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ path = "examples/basic/src/main.rs"
4343
[[example]]
4444
name = "advanced"
4545
path = "examples/advanced/src/main.rs"
46+

0 commit comments

Comments
 (0)