Skip to content

Update windows.yml

Update windows.yml #3

Workflow file for this run

name: Build Windows
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch: # Manual trigger
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.7.1' # Adjust the version as needed
- name: Find Visual Studio installation path
id: find-vs
run: |
echo "::set-output name=vs_path::$(vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath)"
- name: Set up MSVC environment
run: |
cmd.exe /c "call `"${{ steps.find-vs.outputs.vs_path }}\VC\Auxiliary\Build\vcvarsall.bat`" x64 && set"
- name: Generate Makefile
run: qmake -tp vc -config release
- name: Build the project
run: nmake
- name: Package the application
run: windeployqt DXUI-Installer.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: DXUI-Installer-Windows
path: DXUI-Installer.exe