Convert to WIX 5 #870
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: CMake (Windows) | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: RelWithDebInfo | |
BUILD_NUMBER: ${{github.run_number}} | |
CMAKE_BUILD_PARALLEL_LEVEL: 3 | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Prepare vcpkg and libraries | |
uses: lukka/run-vcpkg@v7 | |
with: | |
vcpkgArguments: gtest openssl | |
vcpkgTriplet: x64-windows | |
vcpkgGitCommitId: 1f619be01b436b796dab797dd1e1721c5676f8ac | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: 6.6.3 | |
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.Bal.wixext/5.0.0 | |
- name: Configure | |
run: | | |
cmake "-GNinja" -S . -B build ` | |
"-DCMAKE_TOOLCHAIN_FILE=${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" ` | |
"-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}" | |
- name: Build | |
run: | | |
cmake --build build --config ${env:BUILD_TYPE} | |
cmake --build build --config ${env:BUILD_TYPE} --target installer | |
- name: Downgrade WiX | |
run: | | |
wix extension remove -g WixToolset.Bal.wixext | |
dotnet tool uninstall --global wix | |
dotnet tool install --global wix --version 4.0.5 | |
wix extension -g add WixToolset.UI.wixext/4.0.5 | |
wix extension -g add WixToolset.Util.wixext/4.0.5 | |
wix extension -g add WixToolset.Bal.wixext/4.0.5 | |
- name: Build Bundle | |
run: | | |
cmake --build build --config ${env:BUILD_TYPE} --target bundle | |
- name: Test | |
run: ctest -V -C ${env:BUILD_TYPE} --test-dir build | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: web-eid-app-windows-build-${{github.run_number}} | |
path: | | |
build/src/app/*.msi | |
build/src/app/*.exe | |
build/**/*.pdb |