From 6facd9615105fcf7b5d28abdea5ee1c9f38384a3 Mon Sep 17 00:00:00 2001 From: nemynm <180121731+nemynm@users.noreply.github.com> Date: Wed, 9 Oct 2024 21:57:35 -0400 Subject: [PATCH] Add ANSI-X9.63-KDF support: add CI job --- .github/workflows/ansi-x963-kdf.yml | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/ansi-x963-kdf.yml diff --git a/.github/workflows/ansi-x963-kdf.yml b/.github/workflows/ansi-x963-kdf.yml new file mode 100644 index 0000000..4b7c0fc --- /dev/null +++ b/.github/workflows/ansi-x963-kdf.yml @@ -0,0 +1,53 @@ +name: ansi-x963-kdf + +on: + pull_request: + paths: + - "ansi-x963-kdf/**" + - "Cargo.*" + push: + branches: master + +defaults: + run: + working-directory: ansi-x963-kdf + +env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-Dwarnings" + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.81.0 # MSRV + - stable + target: + - 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 --target ${{ matrix.target }} + + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.81.0 # MSRV + - stable + steps: + - uses: actions/checkout@v4 + - 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