diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 3dbc82f..bcd63cf 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -27,7 +27,9 @@ jobs: runs-on: ${{ matrix.os }} - + env: + VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/.vcpkg-cache + VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/.vcpkg-cache,readwrite steps: - uses: actions/checkout@v4 @@ -48,12 +50,18 @@ jobs: - name: Setup MSVC if: matrix.platform == 'windows' uses: ilammy/msvc-dev-cmd@v1 - + - name: Cache vcpkg + uses: actions/cache@v4 + with: + path: .vcpkg-cache + key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json') }} + restore-keys: | + ${{ runner.os }}-vcpkg- - name: Bootstrap vcpkg run: | git clone https://github.com/microsoft/vcpkg.git ./vcpkg/bootstrap-vcpkg.bat - + - name: Configure if: matrix.platform == 'windows' run: > diff --git a/vcpkg.json b/vcpkg.json index 2cd7586..7810023 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -5,7 +5,10 @@ "openal-soft", "harfbuzz", "freetype", - "sdl3" + { + "name": "sdl3", + "default-features": false + } ], "builtin-baseline": "a0400024711b283056538ac19ced80b91a83c24c" } \ No newline at end of file