From bf444ac2afd77a49f71fab852eaab9811752e2c0 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:50:57 -0400 Subject: [PATCH] build: use vcpkg as a submodule --- .github/workflows/build.yml | 9 ++++++--- .gitmodules | 4 ++++ vcpkg | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .gitmodules create mode 160000 vcpkg diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fd6534..8861b77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + submodules: recursive - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v2 @@ -36,8 +38,8 @@ jobs: - name: Restore NuGet packages run: msbuild -t:restore -p:RestorePackagesConfig=true - - name: Setup vcpkg - uses: lukka/run-vcpkg@v11 + - name: Bootstrap vcpkg + run: ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat -disableMetrics - name: Install vcpkg MSBuild integration run: ${{ github.workspace }}/vcpkg/vcpkg.exe integrate install @@ -48,7 +50,8 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: + if-no-files-found: error name: WinUHid-${{ matrix.configuration }}-${{ matrix.platform }} path: | build/${{ matrix.configuration }}/${{ matrix.platform }}/WinUHid.* - WinUHid/WinUHid.h \ No newline at end of file + WinUHid/WinUHid.h diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..abf2402 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "vcpkg"] + path = vcpkg + url = https://github.com/microsoft/vcpkg.git + branch = master diff --git a/vcpkg b/vcpkg new file mode 160000 index 0000000..62159a4 --- /dev/null +++ b/vcpkg @@ -0,0 +1 @@ +Subproject commit 62159a45e18f3a9ac0548628dcaf74fcb60c6ff9