Skip to content

Commit 53a8737

Browse files
Merge pull request #254 from marshallpierce/mp/ci-all-targets
CI for all targets w/o default features
2 parents 9eaf503 + c423b6e commit 53a8737

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ workflows:
2020
# get a nightly or stable toolchain via rustup instead of a mutable docker tag
2121
toolchain_override: [
2222
'__msrv__', # won't add any other toolchains, just uses what's in the docker image
23-
'1.60.0', # minimum needed to build dev-dependencies
23+
'1.63.0', # minimum needed to build dev-dependencies
2424
'stable',
2525
'beta',
2626
'nightly'
@@ -76,10 +76,20 @@ jobs:
7676
fi
7777
- run:
7878
name: Build without default features
79-
command: cargo build --no-default-features
79+
command: |
80+
cargo build --no-default-features
81+
if [[ '<< parameters.toolchain_override >>' != '__msrv__' ]]
82+
then
83+
cargo build --no-default-features --all-targets
84+
fi
8085
- run:
8186
name: Build with only alloc
82-
command: cargo build --no-default-features --features alloc
87+
command: |
88+
cargo build --no-default-features --features alloc
89+
if [[ '<< parameters.toolchain_override >>' != '__msrv__' ]]
90+
then
91+
cargo build --no-default-features --features alloc --all-targets
92+
fi
8393
- run:
8494
name: Add arm toolchain
8595
command: rustup target add thumbv6m-none-eabi
@@ -95,7 +105,8 @@ jobs:
95105
command: |
96106
if [[ '<< parameters.toolchain_override >>' != '__msrv__' ]]
97107
then
98-
cargo test --verbose
108+
cargo test --no-default-features
109+
cargo test
99110
fi
100111
- run:
101112
name: Build docs

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ keywords = ["base64", "utf8", "encode", "decode", "no_std"]
1010
categories = ["encoding"]
1111
license = "MIT OR Apache-2.0"
1212
edition = "2018"
13-
# dev-dependencies require 1.60, but the main code doesn't
13+
# dev-dependencies require 1.63, but the main code doesn't
1414
# This option was added in 1.56, keep it for when we bump MSRV.
1515
rust-version = "1.48.0"
1616

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

0 commit comments

Comments
 (0)