Skip to content

Commit 853c3be

Browse files
committed
Adjust CI to check different configurations
Builds/tests were added, some without default features and some with just `bin` enabled. The default features builds/tests were kept.
1 parent 7b7aa88 commit 853c3be

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

.github/workflows/rust-ci.yaml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@ jobs:
1313
rust-ci:
1414
name: Rust-CI
1515
runs-on: ubuntu-latest
16-
needs: [build, test, test_convert, clippy, format, check]
16+
needs:
17+
- build
18+
- test
19+
- test_convert
20+
- clippy
21+
- format
22+
- check
23+
- library
24+
- library_test
25+
- configless
26+
- configless_test
1727
if: always()
1828
steps:
1929
- name: Done
@@ -80,3 +90,40 @@ jobs:
8090
cargo install svdtools --path .
8191
- name: Check
8292
run: bash tools/check_${{ matrix.target }}.sh
93+
94+
library:
95+
name: Library Build
96+
runs-on: ubuntu-latest
97+
env:
98+
RUSTFLAGS: "-D warnings"
99+
RUSTDOCFLAGS: "-D warnings"
100+
steps:
101+
- uses: actions/checkout@v4
102+
- run: cargo build --no-default-features
103+
- run: cargo doc --no-default-features
104+
library_test:
105+
name: Library Test
106+
runs-on: ubuntu-latest
107+
env:
108+
RUSTFLAGS: "-D warnings"
109+
steps:
110+
- uses: actions/checkout@v4
111+
- run: cargo test --no-default-features
112+
configless:
113+
name: Configless Build
114+
runs-on: ubuntu-latest
115+
env:
116+
RUSTFLAGS: "-D warnings"
117+
RUSTDOCFLAGS: "-D warnings"
118+
steps:
119+
- uses: actions/checkout@v4
120+
- run: cargo build --no-default-features --features bin
121+
- run: cargo doc --no-default-features --features bin
122+
configless_test:
123+
name: Configless Test
124+
runs-on: ubuntu-latest
125+
env:
126+
RUSTFLAGS: "-D warnings"
127+
steps:
128+
- uses: actions/checkout@v4
129+
- run: cargo test --no-default-features --features bin

tests/example1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn example1() {
77
let expected_svd_path = test_dir.join("expected.svd");
88
let expected_svd = svd_reader::device(&expected_svd_path).unwrap();
99

10-
patch::patch_cli::patch(
10+
patch::process_file(
1111
&test_dir.join("patch.yaml"),
1212
None,
1313
None,

0 commit comments

Comments
 (0)