Skip to content

Commit 1f56c90

Browse files
committed
Add no_std_check in CI
1 parent a76361e commit 1f56c90

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

.github/workflows/sdk.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
components: clippy, rustfmt
2424
# This additional target is needed for wasm32 compatibility check.
25-
targets: wasm32-unknown-unknown
25+
targets: wasm32-unknown-unknown, thumbv6m-none-eabi
2626

2727
- name: SDK tests
2828
run: cd sdk && ./run-tests.sh
@@ -32,4 +32,7 @@ jobs:
3232
run: cargo check --target=wasm32-unknown-unknown -p dstack-sdk-types
3333

3434
- name: Verify no_std compatibility
35-
run: cargo test -p dstack-sdk-types --test no_std_test --no-default-features
35+
run: |
36+
cargo test -p dstack-sdk-types --test no_std_test --no-default-features
37+
cargo check -p no_std_check --target thumbv6m-none-eabi
38+

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ members = [
4343
"serde-duration",
4444
"dstack-mr",
4545
"dstack-mr/cli",
46+
"no_std_check",
4647
]
4748
resolver = "2"
4849

no_std_check/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "no_std_check"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
dstack-sdk-types = { workspace = true, features = ["borsh"] }

no_std_check/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![no_std]
2+
3+
// Import the types we want to test
4+
use dstack_sdk_types as _;

0 commit comments

Comments
 (0)