Skip to content

Commit e079295

Browse files
committed
Fix Windows CI
1 parent d0bda18 commit e079295

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/windows.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,38 @@ jobs:
1212
matrix:
1313
profile: [ON, OFF]
1414
updater: [ON, OFF]
15-
runs-on: windows-2019
15+
runs-on: windows-latest
1616
steps:
17-
- uses: actions/checkout@v2
18-
with:
19-
submodules: recursive
17+
- uses: actions/checkout@v4
18+
with: { submodules: recursive, fetch-depth: 0 }
2019

2120
- uses: suisei-cn/actions-download-file@v1
2221
id: downloadfile
2322
name: Download prebuilt OpenCV
2423
with:
25-
url: "https://actiona.tools/files/opencv-4.5.1-x64-vc16.7z"
24+
url: "https://actiona.tools/files/opencv-4.11.0-x64-vc17.7z"
2625

2726
- name: Extract OpenCV
2827
run: 7z x -oopencv ${{ steps.downloadfile.outputs.filename }}
2928

3029
- name: setup-msbuild
31-
uses: microsoft/setup-msbuild@v1
30+
uses: microsoft/setup-msbuild@v2
3231

3332
- name: Install Qt
34-
uses: jurplel/install-qt-action@v3
33+
uses: jurplel/install-qt-action@v4
3534
with:
36-
version: 6.4.3
37-
arch: win64_msvc2019_64
35+
version: 6.8.3
36+
arch: win64_msvc2022_64
3837
modules: 'qtspeech qtmultimedia qt5compat'
38+
cache: true
3939

4040
- name: Create Build Environment
4141
run: cmake -E make_directory ${{github.workspace}}/build
4242

4343
- name: Configure CMake
4444
shell: bash
4545
working-directory: ${{github.workspace}}/build
46-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DACT_PROFILE=${{ matrix.profile }} -DACT_UPDATER=${{ matrix.updater }} -G "Visual Studio 16 2019" -DOpenCV_DIR=$GITHUB_WORKSPACE/opencv/x64/vc16/lib
47-
env:
48-
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
46+
run: cmake "$GITHUB_WORKSPACE" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DACT_PROFILE=${{ matrix.profile }} -DACT_UPDATER=${{ matrix.updater }} -G "Visual Studio 17 2022" -DOpenCV_DIR="$GITHUB_WORKSPACE/opencv/x64/vc17/lib"
4947

5048
- name: Build
5149
working-directory: ${{github.workspace}}/build

0 commit comments

Comments
 (0)