Skip to content

Commit

Permalink
CI: test build on actual no_std platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Apr 24, 2024
1 parent 3c8d21d commit 39475e9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/rustls-rustcrypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,6 @@ env:
RUSTFLAGS: "-Dwarnings"

jobs:
build:
strategy:
matrix:
toolchain:
- stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo build
- name: Test no_std with alloc build
run: cargo build --no-default-features --features tls12,alloc

clippy:
runs-on: ubuntu-latest
steps:
Expand All @@ -43,7 +27,6 @@ jobs:
components: clippy
- run: cargo clippy --all --all-features -- -D warnings


doc:
runs-on: ubuntu-latest
steps:
Expand All @@ -63,6 +46,25 @@ jobs:
components: rustfmt
- run: cargo fmt --all -- --check

no_std:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.56.0 # MSRV
- stable
target:
- armv7a-none-eabi
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- run: cargo build --no-default-features --features tls12,alloc --release --target ${{ matrix.target }}

test:
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ p384 = { version = "0.13.0", default-features = false, features = ["pem", "ecdsa
paste = { version = "1.0.14", default-features = false }
pkcs8 = { version = "0.10.2", default-features = false, features = ["pem", "pkcs5"] }
pki-types = { package = "rustls-pki-types", version = "1.0.1", default-features = false }
rand_core = { version = "0.6.4", default-features = false, features = ["getrandom"] }
rand_core = { version = "0.6.4", default-features = false }
rsa = { version = "0.9.2", default-features = false, features = ["sha2"] }
rustls = { version = "0.23.0", default-features = false }
sec1 = { version = "0.7.3", default-features = false, features = ["pkcs8", "pem"] }
Expand Down

0 comments on commit 39475e9

Please sign in to comment.