Skip to content

Commit

Permalink
Add Windows MSVC build workflow
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoming <[email protected]>
  • Loading branch information
QQxiaoming committed Feb 20, 2024
1 parent 0de3603 commit 9c838a1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,43 @@ jobs:
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
name: libsearchonweb_mingw
path: |
./release/searchonweb.dll
windows_msvc2019:
runs-on: windows-2022

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
arch: 'win64_msvc2019_64'
version: '6.5.3'
modules: 'qt5compat qtwebsockets qtserialport qtmultimedia'
aqtversion: '==3.1.7'

- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
toolset: 14.29

- name: Build all
run: |
c:/Windows/system32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -File "./tools/replacer.ps1" -cc_info "msvc" -tpath ./plugininterface/plugininterface.json.temp -opath ./plugininterface/plugininterface.json
lrelease *.pro
qmake searchonweb.pro -tp vc
msbuild searchonweb.vcxproj /p:Configuration=Release /p:Platform=x64 /p:BuildInParallel=false
cp ./release/searchonweb.dll ./release/searchonweb.msvc.dll
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
name: libsearchonweb_msvc
path: |
./release/searchonweb.msvc.dll

0 comments on commit 9c838a1

Please sign in to comment.