From 167c7280fbe8f6e4c0b8c5f5cd4f284c6e45c3b9 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33ef47dc5d..5b45714109 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -196,6 +196,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | @@ -217,14 +219,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"