Skip to content

Commit

Permalink
[更新依赖安装脚本]: 更新了GitHub Actions的依赖安装脚本,以支持在不同操作系统上安装Qt。
Browse files Browse the repository at this point in the history
- 在非Windows系统(macOS和Linux)上添加了条件判断,以安装Qt。
- 为Windows系统添加了特定的Qt安装步骤,指定了架构为`win64_msvc2022_64`。
  • Loading branch information
RealChuan committed Oct 10, 2024
1 parent 2b9d6e6 commit 0a9974a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,20 @@ runs:
ffmpeg[${{ inputs.vcpkg_ffmpeg_features }},amf,nvcodec] --triplet x64-linux \
|| (cat /usr/local/share/vcpkg/installed/vcpkg/issue_body.md && exit 1)
- name: Install Qt
- name: Install Qt on non-windows
if: runner.os == 'macOS' || runner.os == 'Linux'
uses: jurplel/install-qt-action@v4
with:
version: ${{ inputs.qt_ver }}
modules: ${{ inputs.qt_modules }}
cache: 'true'

- name: Install Qt on windows
if: runner.os == 'Windows'
uses: jurplel/install-qt-action@v4
with:
version: ${{ inputs.qt_ver }}
modules: ${{ inputs.qt_modules }}
cache: 'true'
arch: 'win64_msvc2022_64'

0 comments on commit 0a9974a

Please sign in to comment.