r2d2-cryptoki 0.3.0

r2d2 adaptor for cryptoki
Documentation
name: ci

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Build
      run: cargo build

    - name: Install SoftHSM
      run: |
        sudo apt-get update -y &&
        sudo apt-get install -y libsofthsm2
    - name: Test
      run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/softhsm cargo test

    - name: Clippy
      run: RUSTFLAGS="-Dwarnings" cargo clippy
    - name: Fmt
      run: cargo fmt -- --check