Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: test build on actual no_std platforms #64

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading