Skip to content

Allow use PKCS11 token even when there is one type key #926

Allow use PKCS11 token even when there is one type key

Allow use PKCS11 token even when there is one type key #926

Workflow file for this run

name: CMake (Windows)
on: [push, pull_request]
env:
BUILD_TYPE: RelWithDebInfo
CMAKE_BUILD_PARALLEL_LEVEL: 3
VCPKG_MANIFEST_DIR: .github
VCPKG_INSTALLED_DIR: ${{ github.workspace }}/build/vcpkg_installed
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache vcpkg
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/vcpkg_cache
key: vcpkg-${{ hashFiles(format('{0}/vcpkg.json', env.VCPKG_MANIFEST_DIR)) }}
- name: Prepare vcpkg and libraries
uses: lukka/run-vcpkg@v11
with:
vcpkgJsonGlob: ${{ env.VCPKG_MANIFEST_DIR }}/vcpkg.json
runVcpkgInstall: true
env:
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
- name: Configure CMake
run: |
cmake -A x64 -S . -B build "-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}" `
"-DCMAKE_TOOLCHAIN_FILE=${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" `
"-DVCPKG_MANIFEST_DIR=${{ env.VCPKG_MANIFEST_DIR }}"
- name: Build
run: cmake --build build --config ${env:BUILD_TYPE}
- name: Test
run: ctest -V -C ${env:BUILD_TYPE} --test-dir build