Skip to content

Commit

Permalink
Add no_std target to CI
Browse files Browse the repository at this point in the history
Signed-off-by: aeryz <abdullaheryz@protonmail.com>
  • Loading branch information
aeryz committed Nov 18, 2022
1 parent 3ba945d commit bbbe184
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,12 @@ jobs:
name: Add wasm32 target
command: rustup target add wasm32-unknown-unknown && rustup target list --installed
- run:
name: Build library for native target (no_std)
name: Add no_std target
command: rustup target add thumbv7em-none-eabi && rustup target list --installed
- run:
name: Build library for no_std target
working_directory: ~/project/packages/std
command: cargo build --locked --no-default-features
command: cargo build --locked --no-default-features --target thumbv7em-none-eabi
- run:
name: Build library for native target (only "std" feature)
working_directory: ~/project/packages/std
Expand All @@ -276,9 +279,9 @@ jobs:
working_directory: ~/project/packages/std
command: cargo test --locked --no-default-features --features std
- run:
name: Build library for native target (all features "no_std")
name: Build library for no_std target (all features "no_std")
working_directory: ~/project/packages/std
command: cargo build --locked --no-default-features --features abort,iterator,staking,stargate,std,cosmwasm_1_1
command: cargo build --locked --no-default-features --features abort,iterator,staking,stargate,cosmwasm_1_1 --target thumbv7em-none-eabi
- run:
name: Build library for native target (all features)
working_directory: ~/project/packages/std
Expand Down

0 comments on commit bbbe184

Please sign in to comment.