Skip to content

Commit e9e0479

Browse files
committed
Update CI for llff and tlsf features
1 parent d26d22a commit e9e0479

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ jobs:
2424
with:
2525
targets: ${{ matrix.target }}
2626
toolchain: ${{ matrix.toolchain }}
27-
- run: cargo check --target=${{ matrix.target }} --examples
28-
- if: ${{ matrix.toolchain == 'nightly' }}
29-
run: cargo check --target=${{ matrix.target }} --examples --all-features
27+
- run: cargo check --target=${{ matrix.target }} --examples --no-default-features --features 'llff'
28+
- run: cargo check --target=${{ matrix.target }} --examples --no-default-features --features 'tlsf'
3029

3130
clippy:
3231
name: Clippy
@@ -38,7 +37,8 @@ jobs:
3837
components: clippy
3938
toolchain: nightly
4039
targets: thumbv6m-none-eabi
41-
- run: cargo clippy --all-features --examples --target=thumbv6m-none-eabi -- --deny warnings
40+
- run: cargo clippy --examples --target=thumbv6m-none-eabi --no-default-features --features 'llff' -- --deny warnings
41+
- run: cargo clippy --examples --target=thumbv6m-none-eabi --no-default-features --features 'tlsf' -- --deny warnings
4242

4343
format:
4444
name: Format
@@ -58,4 +58,5 @@ jobs:
5858
- uses: actions/checkout@v4
5959
- uses: dtolnay/rust-toolchain@nightly
6060
- name: rustdoc
61-
run: cargo rustdoc --all-features
61+
run: cargo rustdoc --no-default-features --features 'llff'
62+
run: cargo rustdoc --no-default-features --features 'tlsf'

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ use critical_section::Mutex;
1111

1212
// Exactly one of these features must be enabled: "llff" or "tlsf"
1313
#[cfg(all(feature = "tlsf", feature = "llff"))]
14-
compile_error!("You can't enable both 'tlsf' and 'llff' features simultaneously. Choose one allocator.");
14+
compile_error!(
15+
"You can't enable both 'tlsf' and 'llff' features simultaneously. Choose one allocator."
16+
);
1517

1618
#[cfg(feature = "llff")]
1719
use linked_list_allocator::Heap as LLHeap;

0 commit comments

Comments
 (0)