Add certificate decompression function in the library #701
Workflow file for this run
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
name: Windows Build | |
# This machine tests building the software on a both 32 and 64 Windows architecture. | |
on: [push] | |
jobs: | |
souce_build: | |
name: Build dist with Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Install prerequisites | |
run: | | |
set -x | |
sudo apt install libpcsclite-dev check gengetopt help2man zlib1g-dev | |
- name: Create tar.gz | |
run: | | |
set -x | |
./resources/make_src_dist.sh | |
cd .. | |
mkdir artifact | |
mv $GITHUB_WORKSPACE/yubico-piv-tool-.tar.gz artifact/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: yubico-piv-tool-src | |
path: ../artifact | |
win2019_x86: | |
name: Windows Server 2019 - x86 | |
needs: souce_build | |
runs-on: windows-2019 | |
steps: | |
- name: Download source from job_1 | |
uses: actions/download-artifact@v1 | |
with: | |
name: yubico-piv-tool-src | |
- name: Extract source | |
run: | | |
Set-PSDebug -Trace 1 | |
cd yubico-piv-tool-src | |
tar xf yubico-piv-tool-.tar.gz | |
- name: install prerequisites for x86 architecture | |
run: | | |
Set-PSDebug -Trace 1 | |
vcpkg install openssl:x86-windows | |
vcpkg install getopt:x86-windows | |
vcpkg install check:x86-windows | |
vcpkg install zlib:x86-windows | |
- name: build for x86 architecture | |
run: | | |
Set-PSDebug -Trace 1 | |
$env:Path ="C:/vcpkg/packages/openssl_x86-windows;$env:Path" | |
$env:include ="C:/vcpkg/packages/openssl_x86-windows/include;$env:include" | |
cd yubico-piv-tool-src/yubico-piv-tool- | |
mkdir build; cd build | |
cmake -A Win32 -DVERBOSE_CMAKE=ON -DGETOPT_LIB_DIR=C:/vcpkg/packages/getopt-win32_x86-windows/lib -DGETOPT_INCLUDE_DIR=C:/vcpkg/packages/getopt-win32_x86-windows/include -DCHECK_PATH=C:/vcpkg/packages/check_x86-windows .. | |
cmake --build . -v | |
$env:Path +=";C:/vcpkg/packages/check_x86-windows/bin;C:/vcpkg/packages/openssl_x86-windows/bin;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\lib\Debug;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\ykcs11\Debug" | |
ctest.exe -C Debug | |
- name: Build with YKCS11_DBG is set | |
run: | | |
Set-PSDebug -Trace 1 | |
$env:Path ="C:/vcpkg/packages/openssl_x86-windows;$env:Path" | |
$env:include ="C:/vcpkg/packages/openssl_x86-windows/include;$env:include" | |
cd yubico-piv-tool-src/yubico-piv-tool- | |
rm -r build; mkdir build; cd build | |
cmake -A Win32 -DVERBOSE_CMAKE=ON -DGETOPT_LIB_DIR=C:/vcpkg/packages/getopt-win32_x86-windows/lib -DGETOPT_INCLUDE_DIR=C:/vcpkg/packages/getopt-win32_x86-windows/include -DCHECK_PATH=C:/vcpkg/packages/check_x86-windows -DYKCS11_DBG=3 .. | |
cmake --build . -v | |
$env:Path +=";C:/vcpkg/packages/check_x86-windows/bin;C:/vcpkg/packages/openssl_x86-windows/bin;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\lib\Debug;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\ykcs11\Debug" | |
ctest.exe -C Debug | |
- name: Build only library (no CLI and no ykcs11) | |
run: | | |
Set-PSDebug -Trace 1 | |
$env:Path ="C:/vcpkg/packages/openssl_x86-windows;$env:Path" | |
$env:include ="C:/vcpkg/packages/openssl_x86-windows/include;$env:include" | |
cd yubico-piv-tool-src/yubico-piv-tool- | |
rm -r build; mkdir build; cd build | |
cmake -A Win32 -DVERBOSE_CMAKE=ON -DGETOPT_LIB_DIR=C:/vcpkg/packages/getopt-win32_x86-windows/lib -DGETOPT_INCLUDE_DIR=C:/vcpkg/packages/getopt-win32_x86-windows/include -DCHECK_PATH=C:/vcpkg/packages/check_x86-windows -DBUILD_ONLY_LIB=ON .. | |
cmake --build . -v | |
$env:Path +=";C:/vcpkg/packages/check_x86-windows/bin;C:/vcpkg/packages/openssl_x86-windows/bin;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\lib\Debug;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\ykcs11\Debug" | |
ctest.exe -C Debug | |
- name: Build only dynamic libaries | |
run: | | |
Set-PSDebug -Trace 1 | |
$env:Path ="C:/vcpkg/packages/openssl_x86-windows;$env:Path" | |
$env:include ="C:/vcpkg/packages/openssl_x86-windows/include;$env:include" | |
cd yubico-piv-tool-src/yubico-piv-tool- | |
rm -r build; mkdir build; cd build | |
cmake -A Win32 -DVERBOSE_CMAKE=ON -DGETOPT_LIB_DIR=C:/vcpkg/packages/getopt-win32_x86-windows/lib -DGETOPT_INCLUDE_DIR=C:/vcpkg/packages/getopt-win32_x86-windows/include -DCHECK_PATH=C:/vcpkg/packages/check_x86-windows -DBUILD_STATIC_LIB=OFF .. | |
cmake --build . -v | |
$env:Path +=";C:/vcpkg/packages/check_x86-windows/bin;C:/vcpkg/packages/openssl_x86-windows/bin;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\lib\Debug;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\ykcs11\Debug" | |
ctest.exe -C Debug | |
win2019_x64: | |
name: Windows Server 2019 - x64 | |
needs: souce_build | |
runs-on: windows-2019 | |
steps: | |
- name: Download source from job_1 | |
uses: actions/download-artifact@v1 | |
with: | |
name: yubico-piv-tool-src | |
- name: Extract source | |
run: | | |
Set-PSDebug -Trace 1 | |
cd yubico-piv-tool-src | |
tar xf yubico-piv-tool-.tar.gz | |
- name: install prerequisites for x64 architecture | |
run: | | |
Set-PSDebug -Trace 1 | |
vcpkg install openssl:x64-windows | |
vcpkg install getopt:x64-windows | |
vcpkg install check:x64-windows | |
vcpkg install zlib:x64-windows | |
- name: build for x64 architecture | |
run: | | |
Set-PSDebug -Trace 1 | |
$env:Path ="C:\vcpkg\packages\openssl_x64-windows;$env:Path" | |
$env:include ="C:\vcpkg\packages\openssl_x64-windows/include;$env:include" | |
cd yubico-piv-tool-src/yubico-piv-tool- | |
mkdir build; cd build | |
cmake -A x64 -DVERBOSE_CMAKE=ON -DBACKEND=winscard -DGETOPT_LIB_DIR=C:/vcpkg/packages/getopt-win32_x64-windows/lib -DGETOPT_INCLUDE_DIR=C:/vcpkg/packages/getopt-win32_x64-windows/include -DCHECK_PATH=C:/vcpkg/packages/check_x64-windows .. | |
cmake --build . -v | |
$env:Path +=";C:/vcpkg/packages/check_x64-windows/bin;C:/vcpkg/packages/openssl_x64-windows/bin;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\lib\Debug;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\ykcs11\Debug" | |
ctest.exe -C Debug | |
- name: Build with YKCS11_DBG is set | |
run: | | |
Set-PSDebug -Trace 1 | |
$env:Path ="C:\vcpkg\packages\openssl_x64-windows;$env:Path" | |
$env:include ="C:\vcpkg\packages\openssl_x64-windows/include;$env:include" | |
cd yubico-piv-tool-src/yubico-piv-tool- | |
rm -r build; mkdir build; cd build | |
cmake -A x64 -DVERBOSE_CMAKE=ON -DBACKEND=winscard -DGETOPT_LIB_DIR=C:/vcpkg/packages/getopt-win32_x64-windows/lib -DGETOPT_INCLUDE_DIR=C:/vcpkg/packages/getopt-win32_x64-windows/include -DCHECK_PATH=C:/vcpkg/packages/check_x64-windows -DYKCS11_DBG=3 .. | |
cmake --build . -v | |
$env:Path +=";C:/vcpkg/packages/check_x64-windows/bin;C:/vcpkg/packages/openssl_x64-windows/bin;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\lib\Debug;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\ykcs11\Debug" | |
ctest.exe -C Debug | |
- name: Build only library (no CLI and no ykcs11) | |
run: | | |
Set-PSDebug -Trace 1 | |
$env:Path ="C:\vcpkg\packages\openssl_x64-windows;$env:Path" | |
$env:include ="C:\vcpkg\packages\openssl_x64-windows/include;$env:include" | |
cd yubico-piv-tool-src/yubico-piv-tool- | |
rm -r build; mkdir build; cd build | |
cmake -A x64 -DVERBOSE_CMAKE=ON -DBACKEND=winscard -DGETOPT_LIB_DIR=C:/vcpkg/packages/getopt-win32_x64-windows/lib -DGETOPT_INCLUDE_DIR=C:/vcpkg/packages/getopt-win32_x64-windows/include -DCHECK_PATH=C:/vcpkg/packages/check_x64-windows -DBUILD_ONLY_LIB=ON .. | |
cmake --build . -v | |
$env:Path +=";C:/vcpkg/packages/check_x64-windows/bin;C:/vcpkg/packages/openssl_x64-windows/bin;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\lib\Debug;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\ykcs11\Debug" | |
ctest.exe -C Debug | |
- name: Build only dynamic libaries | |
run: | | |
Set-PSDebug -Trace 1 | |
$env:Path ="C:\vcpkg\packages\openssl_x64-windows;$env:Path" | |
$env:include ="C:\vcpkg\packages\openssl_x64-windows/include;$env:include" | |
cd yubico-piv-tool-src/yubico-piv-tool- | |
rm -r build; mkdir build; cd build | |
cmake -A x64 -DVERBOSE_CMAKE=ON -DBACKEND=winscard -DGETOPT_LIB_DIR=C:/vcpkg/packages/getopt-win32_x64-windows/lib -DGETOPT_INCLUDE_DIR=C:/vcpkg/packages/getopt-win32_x64-windows/include -DCHECK_PATH=C:/vcpkg/packages/check_x64-windows -DBUILD_STATIC_LIB=OFF .. | |
cmake --build . -v | |
$env:Path +=";C:/vcpkg/packages/check_x64-windows/bin;C:/vcpkg/packages/openssl_x64-windows/bin;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\lib\Debug;$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-\build\ykcs11\Debug" | |
ctest.exe -C Debug |