Skip to content

Commit 5671867

Browse files
committed
add cache for vcpkg
fail build if tests fail
1 parent b53985e commit 5671867

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/windows-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ jobs:
2323
vcpkg_triplet: x86-windows
2424
steps:
2525
- uses: actions/checkout@v4
26+
- name: Cache vcpkg
27+
uses: actions/cache@v4
28+
with:
29+
path: |
30+
C:\vcpkg\downloads
31+
C:\vcpkg\archives
32+
C:\vcpkg\buildtrees
33+
C:\vcpkg\packages
34+
key: ${{ runner.os }}-${{ matrix.arch }}-vcpkg-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }}
2635
- name: Install FFmpeg (vcpkg)
2736
shell: pwsh
2837
run: |
@@ -81,6 +90,9 @@ jobs:
8190
Copy-Item "$ffmpegBin\swresample*.dll" -Destination $runDir -Force
8291
Push-Location $runDir
8392
.\openfodder.exe --appveyor --unit-test-headless
93+
if ($LASTEXITCODE -ne 0) {
94+
exit $LASTEXITCODE
95+
}
8496
Pop-Location
8597
- name: Package
8698
shell: pwsh

0 commit comments

Comments
 (0)