Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoming <[email protected]>
  • Loading branch information
QQxiaoming committed Feb 7, 2024
1 parent 81a37be commit 4862aa2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: windows

on:
push:
branches: [ main ]
branches: [ main, test2 ]
paths-ignore:
- 'doc/**'
- 'README.md'
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
arch: win64_mingw
version: '6.5.3'
aqtversion: ==3.1.7

- name: Cache opencv
uses: actions/cache@v4
env:
Expand All @@ -57,7 +57,7 @@ jobs:
with:
args: install innosetup --no-progress

- name: Install prerequisites
- name: build opencv
run: |
$c="C:\opencv4.0.0"
if(-not (Test-Path $c))
Expand All @@ -74,7 +74,7 @@ jobs:
git fetch --tags --force
./tools/sed/sed.exe -i 's/--long --dirty/--long/g' ./tools/generate_info.ps1
./tools/sed/sed.exe -i "s/QT_DIR=C:\/Qt\/Qt6.2.0\/6.2.0\/mingw81_32\/bin/QT_DIR=%Qt5_Dir%/g" ./build_setup.bat
./tools/sed/sed.exe -i "s/QT_TOOLS_DIR=C:\/Qt\/Qt6.2.0\/Tools\/mingw810_32\/bin/QT_TOOLS_DIR=C:\/ProgramData\/Chocolatey\/lib\/mingw\/tools\/install\/mingw64\/bin/g" ./build_setup.bat
./tools/sed/sed.exe -i "s/QT_TOOLS_DIR=C:\/Qt\/Qt6.2.0\/Tools\/mingw810_32\/bin/QT_TOOLS_DIR=C:\/mingw64\/bin/g" ./build_setup.bat
./tools/sed/sed.exe -i "s/OPENCV_DIR=D:\/Qt\/opencv4.2.0\/x64\/mingw\/bin/OPENCV_DIR=C:\/opencv4.0.0\/x64\/mingw\/bin/g" ./build_setup.bat
./tools/sed/sed.exe -i "s/libopencv_imgproc420/libopencv_imgproc400/g" ./build_setup.bat
./tools/sed/sed.exe -i "s/libopencv_imgcodecs420/libopencv_imgcodecs400/g" ./build_setup.bat
Expand Down
2 changes: 1 addition & 1 deletion YUVviewer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ win32:{
QMAKE_TARGET_DESCRIPTION = "YUVviewer based on Qt $$[QT_VERSION]"
QMAKE_TARGET_COPYRIGHT = "GNU General Public License v3.0"

build_info.commands = $$quote("c:/Windows/system32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -File \"$$PWD/tools/generate_info.ps1\" > $$PWD/build_info.inc")
build_info.commands = $$quote("c:/Windows/system32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -File \"$$PWD/tools/generate_info.ps1\" > $$PWD/build_info.inc && sleep 1")
}

unix:!macx:{
Expand Down
1 change: 1 addition & 0 deletions tools/generate_info.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Write-Output "#define BUILD_DATE ""$date_info"""
Write-Output "#define BUILD_DATE_LEN $($date_info.Length)"
Write-Output ""
Write-Output "#endif // __BUILD_INFO_INC__"
Write-Output ""

0 comments on commit 4862aa2

Please sign in to comment.