Skip to content

Commit

Permalink
correct build script logic & provide cmake bug workaround
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Baentsch <[email protected]>
  • Loading branch information
baentsch committed May 7, 2024
1 parent c02895e commit 1d57742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fail-fast: false
matrix:
include:
- name: jammy
- name: ubuntu-latest
container: ubuntu:latest
container:
image: ${{ matrix.container }}
Expand Down
5 changes: 3 additions & 2 deletions scripts/fullbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ if [ -z $liboqs_DIR ]; then
if [ ! -z $OPENSSL_INSTALL ]; then
export CMAKE_OPENSSL_LOCATION="-DOPENSSL_ROOT_DIR=$OPENSSL_INSTALL"
else
export CMAKE_OPENSSL_LOCATION=""
# work around for cmake 3.23.3 regression not finding OpenSSL:
export CMAKE_OPENSSL_LOCATION="-DOPENSSL_ROOT_DIR="
fi
# for full debug build add: -DCMAKE_BUILD_TYPE=Debug
# to optimize for size add -DOQS_ALGS_ENABLED= suitably to one of these values:
Expand All @@ -124,7 +125,7 @@ if [ ! -f "_build/lib/oqsprovider.$SHLIBEXT" ]; then
BUILD_TYPE=""
# for omitting public key in private keys add -DNOPUBKEY_IN_PRIVKEY=ON
if [ -z "$OPENSSL_INSTALL" ]; then
cmake -DOPENSSL_ROOT_DIR=$(pwd)/.local $BUILD_TYPE $OQSPROV_CMAKE_PARAMS -S . -B _build && cmake --build _build
cmake $CMAKE_OPENSSL_LOCATION $BUILD_TYPE $OQSPROV_CMAKE_PARAMS -S . -B _build && cmake --build _build
else
cmake -DOPENSSL_ROOT_DIR=$OPENSSL_INSTALL $BUILD_TYPE $OQSPROV_CMAKE_PARAMS -S . -B _build && cmake --build _build
fi
Expand Down

0 comments on commit 1d57742

Please sign in to comment.