diff --git a/.github/workflows/bp256.yml b/.github/workflows/bp256.yml index e4f8505b..a7dd8e48 100644 --- a/.github/workflows/bp256.yml +++ b/.github/workflows/bp256.yml @@ -31,12 +31,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true - profile: minimal + 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 ecdsa @@ -55,11 +53,9 @@ jobs: - stable steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true - profile: minimal - run: cargo check --all-features - run: cargo test --no-default-features - run: cargo test @@ -70,9 +66,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - run: cargo doc --all-features diff --git a/.github/workflows/bp384.yml b/.github/workflows/bp384.yml index fb97de8a..020a6e6b 100644 --- a/.github/workflows/bp384.yml +++ b/.github/workflows/bp384.yml @@ -31,12 +31,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true - profile: minimal + 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 ecdsa @@ -55,11 +53,9 @@ jobs: - stable steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true - profile: minimal - run: cargo check --all-features - run: cargo test --no-default-features - run: cargo test @@ -70,9 +66,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - run: cargo doc --all-features diff --git a/.github/workflows/k256.yml b/.github/workflows/k256.yml index 79ecc8ec..44e5a29f 100644 --- a/.github/workflows/k256.yml +++ b/.github/workflows/k256.yml @@ -31,12 +31,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + 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 @@ -65,11 +63,9 @@ jobs: - stable steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true - profile: minimal - run: cargo build --all-features --benches test: @@ -93,12 +89,10 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - run: ${{ matrix.deps }} - run: cargo check --target ${{ matrix.target }} --all-features - run: cargo test --release --target ${{ matrix.target }} --no-default-features @@ -131,12 +125,10 @@ jobs: steps: - uses: actions/checkout@v3 - run: ${{ matrix.deps }} - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - uses: RustCrypto/actions/cross-install@master - run: cross test --release --target ${{ matrix.target }} --all-features @@ -145,9 +137,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - run: cargo doc --all-features diff --git a/.github/workflows/p224.yml b/.github/workflows/p224.yml index 5db82ae4..a27e8e4e 100644 --- a/.github/workflows/p224.yml +++ b/.github/workflows/p224.yml @@ -31,12 +31,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true - profile: minimal + 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 pkcs8 @@ -64,12 +62,10 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - run: ${{ matrix.deps }} - run: cargo check --target ${{ matrix.target }} --all-features - run: cargo test --release --target ${{ matrix.target }} --no-default-features @@ -81,9 +77,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - run: cargo doc --all-features diff --git a/.github/workflows/p256.yml b/.github/workflows/p256.yml index 87fc8a7c..e9ac49cd 100644 --- a/.github/workflows/p256.yml +++ b/.github/workflows/p256.yml @@ -31,12 +31,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + 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 @@ -74,12 +72,10 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - run: ${{ matrix.deps }} - run: cargo check --target ${{ matrix.target }} --all-features - run: cargo test --release --target ${{ matrix.target }} --no-default-features @@ -112,12 +108,10 @@ jobs: steps: - uses: actions/checkout@v3 - run: ${{ matrix.deps }} - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - uses: RustCrypto/actions/cross-install@master - run: cross test --release --target ${{ matrix.target }} --all-features @@ -126,9 +120,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - run: cargo doc --all-features diff --git a/.github/workflows/p384.yml b/.github/workflows/p384.yml index d630c2e5..e2202fa0 100644 --- a/.github/workflows/p384.yml +++ b/.github/workflows/p384.yml @@ -31,12 +31,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true - profile: minimal + 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 @@ -71,12 +69,10 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - run: ${{ matrix.deps }} - run: cargo check --target ${{ matrix.target }} --all-features - run: cargo test --release --target ${{ matrix.target }} --no-default-features @@ -109,12 +105,10 @@ jobs: steps: - uses: actions/checkout@v3 - run: ${{ matrix.deps }} - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - uses: RustCrypto/actions/cross-install@master - run: cross test --release --target ${{ matrix.target }} --all-features @@ -123,9 +117,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - run: cargo doc --all-features diff --git a/.github/workflows/p521.yml b/.github/workflows/p521.yml index 9c9a76fa..7b8c2929 100644 --- a/.github/workflows/p521.yml +++ b/.github/workflows/p521.yml @@ -31,12 +31,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true - profile: minimal + 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 @@ -61,12 +59,10 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - run: ${{ matrix.deps }} - run: cargo check --target ${{ matrix.target }} --all-features - run: cargo test --release --target ${{ matrix.target }} --no-default-features @@ -78,9 +74,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - run: cargo doc --all-features diff --git a/.github/workflows/primeorder.yml b/.github/workflows/primeorder.yml index 772dc03a..c0a719b8 100644 --- a/.github/workflows/primeorder.yml +++ b/.github/workflows/primeorder.yml @@ -31,12 +31,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true - profile: minimal + targets: ${{ matrix.target }} - run: cargo build --target ${{ matrix.target }} --release --no-default-features test: @@ -48,11 +46,9 @@ jobs: - stable steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true - profile: minimal - run: cargo check --all-features - run: cargo test --no-default-features - run: cargo test @@ -63,9 +59,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - run: cargo doc --all-features diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index fa524635..4096f49e 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -14,11 +14,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal - uses: actions/cache@v3 with: path: ~/.cargo/bin diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 318e0fef..6a687fdc 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -18,25 +18,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: 1.66.0 components: clippy - override: true - profile: minimal - run: cargo clippy --all --all-features -- -D warnings rustfmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable components: rustfmt - override: true - profile: minimal - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - run: cargo fmt --all -- --check