8f20115075
* Fix Clippy (#85) * Update `curve25519-dalek` to 4.0.0-pre.5 (#86) * Update `curve25519-dalek` * Improve documentation * Adding all-features CI test (#87) * Upgrade `p256` to v0.12 (#90) * Upgrade `p256` to v0.12 * Upgrade MSRV to 1.60 (cherry picked from commitdaa8dc048f) * Replace `json` with `serde_json` (#92) (cherry picked from commitc8de51672b) * Fix Clippy (#96) (cherry picked from commit74eaebe446) * Depend on `ProjectivePoint: ToEncodedPoint` (#95) (cherry picked from commit0409db6f40) * Update `curve25519-dalek` (#94) (cherry picked from commit2787151e1d) * Use explicit crate features (#100) (cherry picked from commit5bce3e3206) * Bump `curve25519-dalek` to v4.0.0-rc.1 (#102) (cherry picked from commit8363d26f6f) * Test P-384 (#84) (cherry picked from commit83eb78b232) * Update RustCrypto dependencies to v0.13 (#106) (cherry picked from commit8b895cc631) * Update curve25519-dalek requirement from =4.0.0-rc.1 to =4.0.0-rc.2 (#108) Updates the requirements on [curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek) to permit the latest version. - [Release notes](https://github.com/dalek-cryptography/curve25519-dalek/releases) - [Changelog](https://github.com/dalek-cryptography/curve25519-dalek/blob/main/CHANGELOG.md) - [Commits](https://github.com/dalek-cryptography/curve25519-dalek/compare/4.0.0-rc.1...4.0.0-rc.2) --- updated-dependencies: - dependency-name: curve25519-dalek dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit4bd2cf466e) * Updating dual-license language (#110) (cherry picked from commitf79ebf9844) * Bump `curve25519-dalek` to v4.0.0-rc.3 (#113) (cherry picked from commit209b957ae4) * Bump `curve25519-dalek` to v4 (#116) (cherry picked from commit0fdfdfdaee) * Fixing clippy IntoIterator warnings (#123) (cherry picked from commitc0162ec8d9) * Bump actions/checkout from 3 to 4 (#120) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit8da56845b8) * Updating setup-rust-action (#125) (cherry picked from commit59e3fedb21) * Test P-521 (#127) (cherry picked from commit68cc7d3709) * Fix ambiguous lifetime elision (#131) (cherry picked from commit40769f7eca) * Bump actions/cache from 3 to 4 (#132) Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commitc93884aca3) * Fixups + cherry-picking changes from #101 * Fix Clippy warnings * More fixups, tests passing * Ensure CI runs on branch v0.4 --------- Co-authored-by: daxpedda <[email protected]> Co-authored-by: Kevin Lewi <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
181 lines
4.3 KiB
YAML
181 lines
4.3 KiB
YAML
name: Rust CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- v0.4
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
|
|
jobs:
|
|
cargo-audit:
|
|
name: Audit
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Cache cargo-audit
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/.crates.toml
|
|
~/.cargo/.crates2.json
|
|
~/.cargo/bin/cargo-audit
|
|
key: cargo-audit
|
|
|
|
- name: Install cargo-audit
|
|
run: cargo install cargo-audit
|
|
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run cargo audit
|
|
run: cargo audit -D warnings
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
backend_feature:
|
|
- --features ristretto255-ciphersuite
|
|
-
|
|
frontend_feature:
|
|
-
|
|
- --features danger
|
|
- --features serde
|
|
toolchain:
|
|
- stable
|
|
- 1.65.0
|
|
name: test
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install ${{ matrix.toolchain }} toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.toolchain }}
|
|
override: true
|
|
|
|
- name: Run cargo test
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --no-default-features ${{ matrix.backend_feature }}
|
|
|
|
- name: Run cargo test with alloc
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --no-default-features ${{ matrix.frontend_feature }},alloc ${{ matrix.backend_feature }}
|
|
|
|
- name: Run cargo test with std
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --no-default-features ${{ matrix.frontend_feature }},std ${{ matrix.backend_feature }}
|
|
|
|
- name: Run cargo test with all features enabled
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --all-features
|
|
|
|
build-no-std:
|
|
name: Build with no-std on ${{ matrix.target }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
# for wasm
|
|
- wasm32-unknown-unknown
|
|
# for any no_std target
|
|
- thumbv6m-none-eabi
|
|
backend_feature:
|
|
-
|
|
- --features ristretto255-ciphersuite
|
|
frontend_feature:
|
|
-
|
|
- --features danger
|
|
- --features serde
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: hecrj/setup-rust-action@v2
|
|
- run: rustup target add ${{ matrix.target }}
|
|
- run: cargo build --verbose --target=${{ matrix.target }} --no-default-features ${{ matrix.frontend_feature }} ${{ matrix.backend_feature }}
|
|
|
|
|
|
clippy:
|
|
name: cargo clippy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
components: clippy
|
|
|
|
- name: Run cargo clippy
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
args: --all-features --all-targets -- -D warnings
|
|
|
|
- name: Run cargo doc
|
|
uses: actions-rs/cargo@v1
|
|
env:
|
|
RUSTDOCFLAGS: -D warnings
|
|
with:
|
|
command: doc
|
|
args: --no-deps --document-private-items --features danger,std
|
|
|
|
|
|
rustfmt:
|
|
name: cargo fmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install nightly toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly
|
|
override: true
|
|
components: rustfmt
|
|
|
|
- name: Run cargo fmt
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
|
|
taplo:
|
|
name: Taplo
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/.crates.toml
|
|
~/.cargo/.crates2.json
|
|
~/.cargo/bin/taplo
|
|
key: taplo
|
|
|
|
- name: Install Taplo
|
|
run: cargo install taplo-cli --locked
|
|
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run Taplo
|
|
run: taplo fmt --check
|