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 <[email protected]>
  • Loading branch information
aeryz committed Nov 18, 2022
1 parent 97954a3 commit 21351cc
Show file tree
Hide file tree
Showing 2 changed files with 8 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
1 change: 1 addition & 0 deletions packages/std/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use serde::{Deserialize, Serialize};
use crate::addresses::Addr;
use crate::binary::Binary;
use crate::coin::Coin;
#[cfg(feature = "std")]
use crate::errors::StdResult;
use crate::results::{Attribute, CosmosMsg, Empty, Event, SubMsg};
#[cfg(feature = "std")]
Expand Down

0 comments on commit 21351cc

Please sign in to comment.