Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix(ci): install CMake 4.3 for ARM64 vcpkg builds (#16044)

fufesou82aa28f129b1
diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml
index bf1b7610c..cf6d74fd0 100644
--- a/.github/workflows/flutter-build.yml
+++ b/.github/workflows/flutter-build.yml
@@ -43,6 +43,7 @@ env:
# https://github.com/rustdesk/rustdesk/actions/runs/14414119794/job/40427970174
# 2. Update the `VCPKG_COMMIT_ID` in `ci.yml` and `playground.yml`.
VCPKG_COMMIT_ID: "9e593bb18ea69cc5095e012465dcd675a822ed0d"
+ VCPKG_CMAKE_VERSION: "4.3.0"
ARMV7_VCPKG_COMMIT_ID: "6f29f12e82a8293156836ad81cc9bf5af41fe836" # 2025.01.13, got "/opt/artifacts/vcpkg/vcpkg: No such file or directory" with latest version
VERSION: "1.5.0"
NDK_VERSION: "r28c"
@@ -1571,6 +1572,15 @@ jobs:
name: bridge-artifact
path: ./
+ # vcpkg 2026.07.29's SPDX scripts require CMake 4.3+, but this ARM64 runner selects CMake 3.31.
+ - name: Install CMake for vcpkg on Linux ARM64
+ if: matrix.job.arch == 'aarch64' && env.UPLOAD_ARTIFACT == 'true'
+ run: |
+ python3 -m pip install --user "cmake==${VCPKG_CMAKE_VERSION}"
+ user_base="$(python3 -m site --user-base)"
+ "${user_base}/bin/cmake" --version
+ echo "${user_base}/bin" >> "${GITHUB_PATH}"
+
- name: Setup vcpkg with Github Actions binary cache
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'
uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11