Windows #232
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: "wxWidgets on Windows" | |
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" | |
shell: pwsh | |
run: | | |
$ProgressPreference = 'SilentlyContinue' | |
mkdir build | |
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 | |
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 wxwidgets | |
triplet: x64-windows | |
revision: cf035d9916a0a23042b41fcae7ee0386d245af08 | |
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 | |
shell: pwsh | |
run: | | |
$ProgressPreference = 'SilentlyContinue' | |
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/NickvisionApplicationSetup.exe | |
name: Windows-x64-Release |