diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1daa44541bb59b..1a034dffe1ed7c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,7 @@ jobs: - os: windows-2019 vcpkg_path: C:\mixxx-vcpkg exe_suffix: .exe + nuget: $(vcpkg fetch nuget | tail -n 1) vcpkg_bootstrap: .\bootstrap-vcpkg.bat vcpkg_triplet: x64-windows vcpkg_host_triplet: x64-windows @@ -23,6 +24,7 @@ jobs: check_disk_space: Get-PSDrive - os: macos-11 vcpkg_path: /Users/runner/mixxx-vcpkg + nuget: nuget vcpkg_bootstrap: ./bootstrap-vcpkg.sh vcpkg_triplet: x64-osx-min1015 vcpkg_host_triplet: x64-osx-min1015 @@ -57,7 +59,7 @@ jobs: if: runner.os != 'Linux' && github.event_name == 'push' shell: bash run: | - nuget="$(vcpkg fetch nuget | tail -n 1)" + nuget="${{ matrix.nuget }}" "${nuget}" sources add -Name "mixxx-github-packages" -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" -UserName "${{ github.repository_owner }}" -Password "${{ secrets.GITHUB_TOKEN }}" -StorePasswordInClearText "${nuget}" setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" echo "VCPKG_BINARY_SOURCES=clear;nuget,mixxx-github-packages,readwrite;" >> "${GITHUB_ENV}" @@ -66,7 +68,7 @@ jobs: if: runner.os != 'Linux' && github.event_name == 'pull_request' shell: bash run: | - nuget="$(vcpkg fetch nuget | tail -n 1)" + nuget="${{ matrix.nuget }}" "${nuget}" sources add -Name "mixxx-github-packages" -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" -UserName "${{ github.repository_owner }}" -Password "${{ secrets.GITHUB_TOKEN }}" -StorePasswordInClearText "${nuget}" setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" echo "VCPKG_BINARY_SOURCES=clear;nuget,mixxx-github-packages,read;" >> "${GITHUB_ENV}"