Skip to content

Commit 3b795c8

Browse files
committed
Add no_std CI run
1 parent 57075d6 commit 3b795c8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/rust.yml

+14
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ jobs:
2525
run: cargo test --verbose --all-features --all
2626
- name: Build Examples
2727
run: cargo build --examples --all-features --all
28+
no_std_build:
29+
name: no_std Build
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- run: rustup update
34+
- name: Build
35+
run: cargo build --verbose --no-default-features
36+
- name: Build
37+
run: cargo build --verbose --no-default-features --features=alloc
38+
- name: Run tests
39+
run: cargo test --verbose --no-default-features
40+
- name: Run tests as no_std with alloc
41+
run: cargo test --verbose --no-default-features --features=alloc
2842
clippy:
2943
name: Clippy
3044
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)