@@ -344,12 +344,15 @@ jobs:
344344 CCACHE_DIR : ' C:\ccache'
345345 VCPKG_TRIPLET : x64-windows
346346 VCPKG_BUILD_TYPE : release
347+ VCPKG_ROOT : " ${{github.workspace}}/vcpkg"
348+ VCPKG_BINARY_SOURCES : ' clear;nuget,GitHub,readwrite'
347349 name : RPCS3 Windows ${{ matrix.compiler }}
348350 steps :
349351 - name : Checkout repository
350352 uses : actions/checkout@main
351353 with :
352354 fetch-depth : 0
355+
353356 - name : Setup msys2
354357 uses : msys2/setup-msys2@v2
355358 if : ${{ matrix.compiler == 'clang' }}
@@ -386,42 +389,21 @@ jobs:
386389 run : |
387390 git clone https://github.com/microsoft/vcpkg.git
388391 .\vcpkg\bootstrap-vcpkg.bat
389- - name : Restore vcpkg cache
390- if : ${{ matrix.compiler == 'clang-cl' }}
391- uses : actions/cache/restore@main
392- id : restore-vcpkg-cache
393- with :
394- path : |
395- vcpkg/installed
396- vcpkg/buildtrees
397- key : vcpkg-${{ runner.os }}-${{ matrix.compiler }}-${{ runner.arch }}-${{ hashFiles('**/vcpkg') }}
398- restore-keys : vcpkg-${{ runner.os }}-${{ matrix.compiler }}-${{ runner.arch }}-
399392
400- - name : Install dependencies with vcpkg
393+ - name : ' Setup NuGet Credentials for vcpkg'
401394 if : ${{ matrix.compiler == 'clang-cl' }}
402- shell : pwsh
403- run : >-
404- .\vcpkg\vcpkg.exe install
405- ffmpeg[avcodec,avformat,swscale,swresample]
406- libpng
407- opencv
408- qtbase
409- qtmultimedia
410- qtsvg
411- qttools
412- vulkan
413- zlib
414- --triplet $env:VCPKG_TRIPLET
415- --clean-after-build
416-
417- - name : Save vcpkg cache
418- if : ${{ github.ref == 'refs/heads/master' && matrix.compiler == 'clang-cl' }}
419- uses : actions/cache/save@main
420- with :
421- path : |
422- vcpkg/installed
423- vcpkg/buildtrees
424- key : ${{ steps.restore-vcpkg-cache.outputs.cache-primary-key }}
395+ shell : ' bash'
396+ run : |
397+ `./vcpkg/vcpkg fetch nuget | tail -n 1` \
398+ sources add \
399+ -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
400+ -storepasswordincleartext \
401+ -name "GitHub" \
402+ -username "${{ github.repository_owner }}" \
403+ -password "${{ secrets.GITHUB_TOKEN }}"
404+ `./vcpkg/vcpkg fetch nuget | tail -n 1` \
405+ setapikey "${{ secrets.GITHUB_TOKEN }}" \
406+ -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
425407
426408 - name : Restore LLVM Cache
427409 if : ${{ matrix.compiler == 'clang-cl' }}
@@ -431,6 +413,7 @@ jobs:
431413 path : ./llvm-${{ matrix.llvmver }}
432414 key : ${{ runner.os }}-llvm-dl-cache-${{ hashFiles('**/llvm-${{ matrix.llvmver }}') }}
433415 restore-keys : ${{ runner.os }}-clang-dl-cache-
416+
434417 - name : Add LLVM
435418 if : ${{ matrix.compiler == 'clang-cl' }}
436419 shell : pwsh
@@ -447,14 +430,14 @@ jobs:
447430 rm -r clang*
448431 }
449432 Add-Content -Path $env:GITHUB_PATH -Value "D:\a\rpcs3\rpcs3\llvm-${{ matrix.llvmver }}\bin"
450- C:\PROGRA~1\LLVM\bin\clang-cl.exe --version
433+
451434 - name : Save LLVM Cache
452435 if : ${{ github.ref == 'refs/heads/master' && matrix.compiler == 'clang-cl' }}
453436 uses : actions/cache/save@main
454437 with :
455438 path : ./llvm-${{ matrix.llvmver }}
456439 key : ${{ steps.llvm-cache.outputs.cache-primary-key }}
457-
440+
458441 - name : Restore build Ccache
459442 uses : actions/cache/restore@main
460443 id : restore-build-ccache
@@ -472,7 +455,7 @@ jobs:
472455 .ci/build-windows-clang.sh
473456 .ci/setup-windows-ci-vars.sh ${{ matrix.arch }} ${{ matrix.compiler }}
474457 .ci/deploy-windows-${{ matrix.compiler }}.sh
475-
458+
476459 - name : install DIA SDK
477460 if : ${{ matrix.compiler == 'clang-cl' }}
478461 run : |
0 commit comments