Skip to content

Commit

Permalink
fix: vcpkg caching
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Sep 24, 2023
1 parent b56d44e commit 822edc1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 822edc1

Please sign in to comment.