-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PROTON-2594: ci: setup environment for PKCS#11 test
Now that all pieces are in place, let's adapt out Github Action workflow, so softhsm2, opensc (for pkcs11-tool) and pkcs11-provider (for OpenSSL integration) are available and amend the ctest step to source scripts/prep-pkcs11_test.sh, so the relevant environment variables are exported. Note that pkcs11-provider is shipped in ubuntu-24.04, but it doesn't work, so we build it from source instead. We still need to use ubuntu-24.04, because otherwise libcrypto would be outdated: >= 3.0.7 is required, but ubuntu-latest is 22.04.5, which ships libcrypto 3.0.2.
- Loading branch information
Showing
3 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
set -e | ||
|
||
# pkcs11-provider dependencies | ||
|
||
sudo apt-get install meson | ||
|
||
# Clone pkcs11-provider | ||
|
||
git clone -b v0.5 https://github.com/latchset/pkcs11-provider | ||
|
||
# Build/Install pkcs11-provider | ||
|
||
cd pkcs11-provider | ||
mkdir build | ||
|
||
meson setup build . | ||
meson compile -C build | ||
meson install -C build | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters