* Moves all CTAP logic into its own library * workflows fix test * more coveralls workflow tests
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
name: Crypto library tests
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'libraries/crypto/**'
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
paths:
|
|
- 'libraries/crypto/**'
|
|
|
|
jobs:
|
|
crypto_test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: "true"
|
|
- name: Install Rust toolchain
|
|
run: rustup show
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install Python dependencies
|
|
run: python -m pip install --upgrade pip setuptools wheel
|
|
- name: Set up OpenSK
|
|
run: ./setup.sh
|
|
|
|
- run: echo "RUSTFLAGS=-C target-feature=+aes" >> $GITHUB_ENV
|
|
|
|
- name: Unit testing of crypto library (release mode)
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
toolchain: nightly
|
|
command: test
|
|
args: --manifest-path libraries/crypto/Cargo.toml --release --features std
|
|
|
|
- name: Unit testing of crypto library (debug mode)
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
toolchain: nightly
|
|
command: test
|
|
args: --manifest-path libraries/crypto/Cargo.toml --features std
|