README.md(s): use img.shields.io crate version badges #2856
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: elliptic-curve | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/elliptic-curve.yml" | |
- "elliptic-curve/**" | |
- "Cargo.*" | |
push: | |
branches: master | |
defaults: | |
run: | |
working-directory: elliptic-curve | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: "-Dwarnings" | |
RUSTDOCFLAGS: "-Dwarnings" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.73.0 # MSRV | |
- stable | |
target: | |
- thumbv7em-none-eabi | |
- wasm32-unknown-unknown | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: RustCrypto/actions/cargo-cache@master | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
targets: ${{ matrix.target }} | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features bits | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features dev | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features digest | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdh | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features hash2curve | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features jwk | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pem | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pkcs8 | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features sec1 | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features serde | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features voprf | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,arithmetic | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,arithmetic,pkcs8 | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,serde | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic,serde | |
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,digest,ecdh,hash2curve,jwk,pem,pkcs8,sec1,serde,voprf | |
minimal-versions: | |
# Temporarily disabled until elliptic-curve 0.13.0-pre.0 is published | |
if: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: RustCrypto/actions/cargo-cache@master | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
- uses: RustCrypto/actions/cargo-hack-install@master | |
- run: cargo update -Z minimal-versions | |
- run: cargo +stable build --release --all-features | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.73.0 # MSRV | |
- stable | |
- nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: RustCrypto/actions/cargo-cache@master | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: cargo check --all-features | |
- run: cargo test --no-default-features | |
- run: cargo test | |
- run: cargo test --all-features |