Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ WORKSPACE="$(pwd)"
BUILD_DIR="$(pwd)/deps"
LOCK_FILE="/var/lock/uadk-lock"

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64

version=$(openssl version)
major_version=$(echo $version | awk -F'[ .]' '{print $2}')
echo "OpenSSL major version is "$major_version

if (( major_version >= 3 )); then
dir="/usr/lib64/ossl-modules/"
else
dir="/usr/local/lib/engines-1.1/"
fi

lock() {
exit_code=1
pending=0
Expand Down Expand Up @@ -37,6 +50,7 @@ trap 'unlock' EXIT
clean_previous_installations() {
sudo rm -f /usr/local/lib/libwd*
sudo rm -rf /usr/local/lib/uadk/
sudo rm -f $dir/uadk_provider.*
}

detect_repository() {
Expand Down Expand Up @@ -79,20 +93,10 @@ build_uadk() {
exit 0
fi

sudo ./test/sanity_test.sh
sudo -E ./test/sanity_test.sh
}

build_uadk_engine() {
version=$(openssl version)
major_version=$(echo $version | awk -F'[ .]' '{print $2}')
echo "OpenSSL major version is "$major_version

if (( major_version >= 3 )); then
dir="/usr/lib64/ossl-modules/"
else
dir="/usr/local/lib/engines-1.1/"
fi

autoreconf -i
./configure --libdir="$dir" CFLAGS=-Wall
make -j$(nproc)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
build-and-test:
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
strategy:
matrix:
runner:
Expand Down