Skip to content

Merge libpcsc-cpp and libpcsc-mock repositories #390

Merge libpcsc-cpp and libpcsc-mock repositories

Merge libpcsc-cpp and libpcsc-mock repositories #390

Workflow file for this run

name: CMake (Windows)
on: [push, pull_request]
env:
BUILD_TYPE: RelWithDebInfo
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Prepare vcpkg and libraries
uses: lukka/run-vcpkg@v6
with:
vcpkgArguments: gtest:x64-windows openssl:x64-windows
vcpkgTriplet: x64-windows
vcpkgDirectory: ${{runner.workspace}}/vcpkg/
vcpkgGitCommitId: 9b064ff07b987c8f213fdbf4358122fd4fe38ef1
- name: Create build directory
run: mkdir build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: cmake -A x64 "-DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}" ..
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config ${env:BUILD_TYPE}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -V -C ${env:BUILD_TYPE}