Skip to content

Commit 3341e91

Browse files
authored
ci: revert to use cargo run for running examples (#103)
1 parent ddfdfba commit 3341e91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ jobs:
6363
with:
6464
toolchain: ${{ matrix.rust }}
6565
components: rustfmt
66-
- run: cargo +${{ matrix.rust }} test --examples
67-
- run: cargo +${{ matrix.rust }} test --features=std --examples
66+
- run: |
67+
for eg in `ls examples/*.rs | xargs basename --suffix=.rs`; do
68+
cargo +${{ matrix.rust }} run --example ${eg};
69+
cargo +${{ matrix.rust }} run --features=std --example ${eg};
70+
done
6871
6972
no_std:
7073
name: Build for a no_std target

0 commit comments

Comments
 (0)