Import IKAR messenger client and server
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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
|
||||
@@ -0,0 +1,26 @@
|
||||
name: Setup Rust
|
||||
description: >
|
||||
Install the Rust toolchain with platform targets and a build cache, so
|
||||
cargokit can compile the native libraries during the Flutter build. kolibri
|
||||
comes from pub.dev and builds inside the pub cache, so only the in-repo crate
|
||||
is listed here; the shared cargo registry and git checkouts are cached anyway.
|
||||
|
||||
inputs:
|
||||
targets:
|
||||
description: Comma-separated rustup targets for the platform being built.
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: ${{ inputs.targets }}
|
||||
|
||||
- name: Cache Rust build
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: |
|
||||
native/qlyra_crypto/rust
|
||||
native/komet_tlottie/rust
|
||||
Reference in New Issue
Block a user