From a54870d991c02d018d4a884167bf05945317cd8e Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Thu, 19 Dec 2024 15:58:02 -0800 Subject: [PATCH] Workaround Ubuntu 24.04 nuget issues --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33ef47dc5d..126ce751f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -217,14 +217,18 @@ jobs: - name: Setup NuGet run: | - nuget sources add \ + ./vcpkg/bootstrap-vcpkg.sh + + NUGET_EXE=$(./vcpkg/vcpkg fetch nuget) + + mono $NUGET_EXE sources add \ -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ -storepasswordincleartext \ -name "GitHub" \ -username "${{ github.repository_owner }}" \ -password "${{ secrets.GITHUB_TOKEN }}" - nuget setapikey \ + mono $NUGET_EXE setapikey \ "${{ secrets.GITHUB_TOKEN }}" \ -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"