WinUI --> QT #30
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
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
types: [ "review_requested", "ready_for_review" ] | |
workflow_dispatch: | |
name: Windows | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
GITHUB_ACTIONS: true | |
VCPKG_ROOT: ${{github.workspace}}/vcpkg | |
jobs: | |
build: | |
name: "Build on x64" | |
runs-on: windows-latest | |
if: ${{ github.event.pull_request.user.login != 'weblate' }} | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "Setup Environment" | |
run: | | |
mkdir build | |
powershell -command "Invoke-WebRequest https://github.com/mlocati/gettext-iconv-windows/releases/download/v0.21-v1.16/gettext0.21-iconv1.16-shared-64.zip -OutFile gettext.zip" | |
powershell -command "Expand-Archive -Force 'gettext.zip'" | |
move gettext\bin\* C:\Windows\System32 | |
choco install innosetup | |
- name: "Vcpkg" | |
uses: johnwason/vcpkg-action@v6 | |
id: vcpkg | |
with: | |
pkgs: libnick libjpeg-turbo boost-gil qtbase qtsvg qttools | |
triplet: x64-windows | |
revision: e590c2b30c08caf1dd8d612ec602a003f9784b7d | |
token: ${{ secrets.GITHUB_TOKEN }} | |
github-binarycache: true | |
- name: "Build" | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake -G "Visual Studio 17 2022" .. | |
cmake --build . --config Release | |
- name: "Create Installer" | |
working-directory: ${{github.workspace}}/inno | |
run: | | |
powershell -command "Invoke-WebRequest https://aka.ms/vs/17/release/vc_redist.x64.exe -OutFile vc_redist.x64.exe" | |
iscc setup.iss | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ${{github.workspace}}/inno/NickvisionSpotlightSetup.exe | |
name: Windows-x64-Release |