Skip to content

Commit f029826

Browse files
author
barry
committed
fix: qt6 build error
1 parent b21c56a commit f029826

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/macos.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
build-arch: x64
3030
- qt-ver: 6.5.3
3131
qt-arch-install: arm64
32-
build-arch: [x64, arm64]
32+
build-arch: arm64
3333
env:
3434
target-name: QtScrcpy
3535
qt-install-path: ${{ github.workspace }}/${{ matrix.qt-ver }}
@@ -41,11 +41,19 @@ jobs:
4141
with:
4242
path: ${{ env.qt-install-path }}/${{ matrix.qt-arch-install }}
4343
key: ${{ runner.os }}/${{ matrix.qt-ver }}/${{ matrix.qt-arch-install }}
44-
- name: Install Qt
44+
- name: Install Qt5
45+
if: startsWith(${{ matrix.qt-ver }}, '5.')
4546
uses: jurplel/[email protected]
4647
with:
4748
version: ${{ matrix.qt-ver }}
4849
cached: ${{ steps.cache-qt.outputs.cache-hit }}
50+
- name: Install Qt6
51+
if: startsWith(${{ matrix.qt-ver }}, '6.')
52+
uses: jurplel/[email protected]
53+
with:
54+
version: ${{ matrix.qt-ver }}
55+
modules: qtmultimedia
56+
cached: ${{ steps.cache-qt.outputs.cache-hit }}
4957
- uses: actions/checkout@v2
5058
with:
5159
fetch-depth: 0

0 commit comments

Comments
 (0)