aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/scripts/ci/setup_gh_actions.sh2
-rwxr-xr-xsrc/scripts/ci_build.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/ci/setup_gh_actions.sh b/src/scripts/ci/setup_gh_actions.sh
index 1de04301b..43007bd79 100755
--- a/src/scripts/ci/setup_gh_actions.sh
+++ b/src/scripts/ci/setup_gh_actions.sh
@@ -64,7 +64,7 @@ if type -p "apt-get"; then
sudo chmod g+w /var/lib/softhsm/tokens
softhsm2-util --init-token --free --label test --pin 123456 --so-pin 12345678
-
+ echo "PKCS11_LIB=/usr/lib/softhsm/libsofthsm2.so" >> $GITHUB_ENV
elif [ "$TARGET" = "docs" ]; then
sudo apt-get -qq install doxygen python-docutils python3-sphinx
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py
index b6f17d7da..03ef0f97c 100755
--- a/src/scripts/ci_build.py
+++ b/src/scripts/ci_build.py
@@ -367,7 +367,7 @@ def parse_args(args):
parser.add_option('--compiler-cache', default=None, metavar='CC',
help='Set a compiler cache to use (ccache, sccache)')
- parser.add_option('--pkcs11-lib', default=None, metavar='LIB',
+ parser.add_option('--pkcs11-lib', default=os.getenv('PKCS11_LIB'), metavar='LIB',
help='Set PKCS11 lib to use for testing')
parser.add_option('--with-python3', dest='use_python3', action='store_true', default=None,