Skip to content

Commit

Permalink
Introduce matrix.nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Nov 12, 2023
1 parent 292e914 commit 57b5495
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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}"
Expand All @@ -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}"
Expand Down

0 comments on commit 57b5495

Please sign in to comment.