From c39c103719066d2019d1a9cc0ead0446e99c7e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 13 Nov 2023 08:04:50 +0100 Subject: [PATCH] Use nuget from vcpkg --- .github/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd6cc7fbf7e58d..788a2546fb305d 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 @@ -62,16 +64,18 @@ jobs: if: runner.os != 'Linux' && github.event_name == 'push' shell: bash run: | - 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" + 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}" - name: "Authenticate to GitHub Packages (read only)" if: runner.os != 'Linux' && github.event_name == 'pull_request' shell: bash run: | - 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" + 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}" - name: Read sha_short @@ -105,7 +109,7 @@ jobs: run: ${{ matrix.check_disk_space }} - name: Build packages - run: ./vcpkg install --vcpkg-root=${{ matrix.vcpkg_path }} --clean-after-build --recurse --feature-flags="-compilertracking,manifests,registries,versions" --x-abi-tools-use-exact-versions + run: ./vcpkg install --vcpkg-root=${{ matrix.vcpkg_path }} --clean-after-build --recurse --feature-flags="-compilertracking,manifests,registries,versions" --x-abi-tools-use-exact-versions --debug working-directory: ${{ matrix.vcpkg_path }} - name: Upload GitHub Actions artifacts of build logs