Added NuGet to Github CI for Windows.

This commit is contained in:
23rd 2021-04-27 15:08:41 +03:00 committed by John Preston
parent 05d2fc819c
commit cfa3352caf
1 changed files with 9 additions and 0 deletions

View File

@ -114,6 +114,11 @@ jobs:
- name: Choco installs.
run: choco install --no-progress -y nasm yasm jom ninja
- name: NuGet sources.
run: |
nuget sources Disable -Name "Microsoft Visual Studio Offline Packages"
nuget sources Add -Source https://api.nuget.org/v3/index.json & exit 0
- name: Patches.
shell: bash
run: |
@ -279,6 +284,10 @@ jobs:
msbuild -m opus.sln /property:Configuration=Debug /property:Platform="Win32"
msbuild -m opus.sln /property:Configuration=Release /property:Platform="Win32"
echo "Workaround for FFmpeg."
copy Win32\Release\m.lib Win32\Release\ssp.lib
copy Win32\Release\m.lib Win32\Debug\ssp.lib
- name: FFmpeg cache.
id: cache-ffmpeg
uses: actions/cache@v2