Skip to content

fix length types

fix length types #102

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
build_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Package Install
run: |
sudo apt update
sudo apt install gcc g++ cmake swig psmisc procps pcscd pcsc-tools yubico-piv-tool libassuan-dev libgcrypt20-dev libksba-dev libnpth0-dev opensc openssl openssh-server libpcsclite-dev libcmocka-dev python3-pip python3-setuptools python3-wheel lcov
sudo pip install cpp-coveralls
- name: Check out code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build for Test
run: |
mkdir build && pushd build
cmake .. -DENABLE_CRYPTO_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
make -j2
- name: Smoking Tests
run: |
cd build
make test
- name: Generate coverage
run: |
mkdir coverage
find build/ -name '*.gcda' | grep -P '/(ed25519-donna|mbed-crypto|test|build)/' | xargs rm
lcov --base-directory . --directory . -c -o ./coverage/lcov.info
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build without MbedTLS
run: |
pushd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_MBEDCRYPTO=OFF
make -j2