Skip to content

Commit

Permalink
Updated windows build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauris Kaplinski committed Jul 17, 2024
1 parent 994edb1 commit 4274f93
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/cmake-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,23 @@ on: [push, pull_request]
env:
BUILD_TYPE: RelWithDebInfo
BUILD_NUMBER: ${{github.run_number}}
CMAKE_BUILD_PARALLEL_LEVEL: 4

jobs:
build:
runs-on: windows-2019
runs-on: ${{ matrix.image }}
strategy:
matrix:
vcver: [142, 143]
include:
- vcver: 142
image: windows-2019
- vcver: 143
image: windows-2022

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -21,24 +30,31 @@ jobs:
with:
vcpkgArguments: gtest openssl
vcpkgTriplet: x64-windows
vcpkgGitCommitId: 98a562a04cd03728f399e79e1b37bcccb5a69b37
vcpkgGitCommitId: 1f619be01b436b796dab797dd1e1721c5676f8ac

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.5.2
version: 6.7.1
arch: win64_msvc2019_64

- name: Setup MS Visual C++ dev env
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64

- name: Install WiX
run: |
dotnet tool install --global wix --version 5.0.0
wix extension -g add WixToolset.UI.wixext/5.0.0
wix extension -g add WixToolset.Util.wixext/5.0.0
wix extension -g add WixToolset.BootstrapperApplications.wixext/5.0.0
- name: Configure
run: |
cmake "-GNinja" `
"-DCMAKE_TOOLCHAIN_FILE=${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" `
"-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}" -S . -B build
cmake "-GNinja" -S . -B build `
"-DCMAKE_TOOLCHAIN_FILE=${env:RUNVCPKG_VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" `
"-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}"
- name: Build
run: |
Expand All @@ -50,10 +66,10 @@ jobs:
run: ctest -V -C ${env:BUILD_TYPE} --test-dir build

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: web-eid-app-windows-build-${{github.run_number}}
name: web-eid-app-windows-build-VC${{matrix.vcver}}-${{github.run_number}}
path: |
build/src/app/*.msi
build/src/app/*.exe
build/**/*.pdb
build/**/*.pdb

0 comments on commit 4274f93

Please sign in to comment.