Skip to content

Commit

Permalink
Merge pull request #254 from marshallpierce/mp/ci-all-targets
Browse files Browse the repository at this point in the history
CI for all targets w/o default features
  • Loading branch information
marshallpierce authored Sep 24, 2023
2 parents 9eaf503 + c423b6e commit 53a8737
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
19 changes: 15 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ workflows:
# get a nightly or stable toolchain via rustup instead of a mutable docker tag
toolchain_override: [
'__msrv__', # won't add any other toolchains, just uses what's in the docker image
'1.60.0', # minimum needed to build dev-dependencies
'1.63.0', # minimum needed to build dev-dependencies
'stable',
'beta',
'nightly'
Expand Down Expand Up @@ -76,10 +76,20 @@ jobs:
fi
- run:
name: Build without default features
command: cargo build --no-default-features
command: |
cargo build --no-default-features
if [[ '<< parameters.toolchain_override >>' != '__msrv__' ]]
then
cargo build --no-default-features --all-targets
fi
- run:
name: Build with only alloc
command: cargo build --no-default-features --features alloc
command: |
cargo build --no-default-features --features alloc
if [[ '<< parameters.toolchain_override >>' != '__msrv__' ]]
then
cargo build --no-default-features --features alloc --all-targets
fi
- run:
name: Add arm toolchain
command: rustup target add thumbv6m-none-eabi
Expand All @@ -95,7 +105,8 @@ jobs:
command: |
if [[ '<< parameters.toolchain_override >>' != '__msrv__' ]]
then
cargo test --verbose
cargo test --no-default-features
cargo test
fi
- run:
name: Build docs
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["base64", "utf8", "encode", "decode", "no_std"]
categories = ["encoding"]
license = "MIT OR Apache-2.0"
edition = "2018"
# dev-dependencies require 1.60, but the main code doesn't
# dev-dependencies require 1.63, but the main code doesn't
# This option was added in 1.56, keep it for when we bump MSRV.
rust-version = "1.48.0"

Expand All @@ -37,7 +37,6 @@ rustdoc-args = ["--generate-link-to-definition"]
[dev-dependencies]
criterion = "0.4.0"
rand = { version = "0.8.5", features = ["small_rng"] }
# clap 4 would require 1.60
structopt = "0.3.26"
# test fixtures for engine tests
rstest = "0.12.0"
Expand Down

0 comments on commit 53a8737

Please sign in to comment.