From 822edc1cb93001e968f300f0682e083b9c1fc88e Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Sun, 24 Sep 2023 16:15:49 +0530 Subject: [PATCH] fix: vcpkg caching --- .github/workflows/build_windows.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index 93e676a5f..190978582 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -3,6 +3,7 @@ name: Build CCExtractor on Windows env: RUSTFLAGS: -Ctarget-feature=+crt-static VCPKG_DEFAULT_TRIPLET: x64-windows-static + VCPKG_DEFAULT_BINARY_CACHE: C:\vcpkg\.cache on: workflow_dispatch: @@ -37,10 +38,10 @@ jobs: uses: actions/cache@v3 with: path: | - C:\vcpkg - key: vcpkg-${{ runner.os }}-${{ matrix.config.vcpkg_triplet }} + C:\vcpkg\.cache + key: vcpkg-${{ runner.os }} - name: Install dependencies - run: cd C:\vcpkg && vcpkg integrate install && vcpkg install leptonica tesseract ffmpeg --triplet x64-windows-static + run: vcpkg install leptonica tesseract ffmpeg --triplet x64-windows-static - uses: actions-rs/toolchain@v1 with: toolchain: stable @@ -81,10 +82,10 @@ jobs: uses: actions/cache@v3 with: path: | - C:\vcpkg - key: vcpkg-${{ runner.os }}-${{ matrix.config.vcpkg_triplet }} + C:\vcpkg\.cache + key: vcpkg-${{ runner.os }} - name: Install dependencies - run: cd C:\vcpkg && vcpkg integrate install && vcpkg install leptonica tesseract ffmpeg --triplet x64-windows-static + run: vcpkg install leptonica tesseract ffmpeg --triplet x64-windows-static - uses: actions-rs/toolchain@v1 with: toolchain: stable