-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·36 lines (27 loc) · 946 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Define installation directory for wolfSSL
INSTALL_DIR="/opt/wolfssl-rs"
# Navigate to the wolfcrypt-rs directory to build wolfSSL and generate bindings
echo "Building wolfSSL and generating bindings..."
cd wolfcrypt-rs/
make build
# Running fmt and clippy on wolfcrypt-rs
echo "Running fmt & clippy on wolfcrypt-rs..."
make fmt && make clippy
# Verify the wolfSSL installation
echo "Running tests to verify wolfSSL installation..."
make test
# Navigate to the rustls-wolfcrypt-provider directory
# to build Rustls with wolfCrypt provider
echo "Setting up Rustls with wolfCrypt provider..."
cd ../rustls-wolfcrypt-provider
make build
# Running fmt and clippy on wolfcrypt-rs
echo "Running fmt & clippy on rustls-wolfcrypt-provider..."
make fmt && make clippy
# Run Rustls tests
echo "Running Rustls tests..."
make test
echo "Build completed successfully!"