Skip to content

feat: add display to public key on secret nist p256 #4

feat: add display to public key on secret nist p256

feat: add display to public key on secret nist p256 #4

Workflow file for this run

name: build and test
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
# Ensures that only a single workflow per PR will run at a time. Cancels in-progress jobs if new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: "-Dwarnings"
jobs:
check-no-std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Build artifacts
uses: Swatinem/[email protected]
with:
cache-on-failure: true
shared-key: ${{ github.event.pull_request.number || github.ref }}
- name: Install bare metal ARM toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: thumbv7em-none-eabihf
- name: Run check
run: cargo check --target thumbv7em-none-eabihf --no-default-features
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Build artifacts
uses: Swatinem/[email protected]
with:
cache-on-failure: true
shared-key: ${{ github.event.pull_request.number || github.ref }}
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo build
run: cargo build --all
- name: Run clippy
run: cargo clippy --all-targets --verbose -- -D warnings
tests:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get cargo
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run tests
run: cargo test --verbose
env:
RUST_BACKTRACE: 1