Files
IKAR/.github/actions/setup-e2ee/action.yml
T

18 lines
927 B
YAML

name: Build E2EE test library
description: Build and test the pinned C crypto core and expose it to Flutter tests.
runs:
using: composite
steps:
- shell: bash
run: |
cmake -S native/crypto-core -B build/native-tests/crypto-core -DCMAKE_BUILD_TYPE=Debug
cmake --build build/native-tests/crypto-core --config Debug --parallel 2
ctest --test-dir build/native-tests/crypto-core -C Debug --output-on-failure
if [ "$RUNNER_OS" = "Windows" ]; then
echo "QLYRA_E2EE_LIBRARY=$GITHUB_WORKSPACE/build/native-tests/crypto-core/Debug/komet_crypto.dll" >> "$GITHUB_ENV"
elif [ "$RUNNER_OS" = "macOS" ]; then
echo "QLYRA_E2EE_LIBRARY=$GITHUB_WORKSPACE/build/native-tests/crypto-core/libkomet_crypto.dylib" >> "$GITHUB_ENV"
else
echo "QLYRA_E2EE_LIBRARY=$GITHUB_WORKSPACE/build/native-tests/crypto-core/libkomet_crypto.so" >> "$GITHUB_ENV"
fi