From 0853fdeed86b867586592d16b465dc80e6c4a3ed Mon Sep 17 00:00:00 2001 From: Bryan Gerlach Date: Thu, 12 Feb 2026 12:37:07 -0600 Subject: [PATCH] vcpkg --- .github/workflows/vcpkg.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vcpkg.yml b/.github/workflows/vcpkg.yml index 902715e..bfb394d 100644 --- a/.github/workflows/vcpkg.yml +++ b/.github/workflows/vcpkg.yml @@ -9,7 +9,7 @@ on: default: 'Manual dependency update' env: - VCPKG_COMMIT_ID: '120deac3062162151622ca4860575a33844ba10b' # Example ID + VCPKG_COMMIT_ID: '120deac3062162151622ca4860575a33844ba10b' jobs: build-and-export: @@ -20,18 +20,35 @@ jobs: - vcpkg-triplet: x64-windows-static steps: + - name: Enable Long Paths + run: git config --global core.longpaths true + + - name: Install Build Tools + run: | + choco install nasm + echo "C:\Program Files\NASM" >> $GITHUB_PATH + - name: Checkout code uses: actions/checkout@v4 - - name: Download RustDesk vcpkg.json + - name: Clone RustDesk overlays run: | - curl -L https://raw.githubusercontent.com/rustdesk/rustdesk/master/vcpkg.json -o vcpkg.json + git clone --filter=blob:none --sparse https://github.com/rustdesk/rustdesk.git rustdesk_repo + cd rustdesk_repo + # Added vcpkg-configuration.json to the list + git sparse-checkout set res/vcpkg vcpkg.json vcpkg-configuration.json + cd .. + cp rustdesk_repo/vcpkg.json . + # Copy configuration if it exists + [ -f rustdesk_repo/vcpkg-configuration.json ] && cp rustdesk_repo/vcpkg-configuration.json . + mkdir -p res + cp -r rustdesk_repo/res/vcpkg ./res/ shell: bash - name: Setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgDirectory: ${{ github.workspace }}/vcpkg # Using workspace is cleaner for artifacts + vcpkgDirectory: ${{ github.workspace }}/vcpkg vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }} doNotCache: false