From 56153aa355b5b40bf2be8670b9a45bbc6b970540 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Fri, 11 Mar 2022 10:06:05 -0500 Subject: Fix Windows CI vcpkg caching by setting API key too --- .github/workflows/ci-windows.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index ae741a7..0c025d0 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -29,14 +29,18 @@ jobs: architecture: 'x86' - name: 'Setup NuGet credentials' shell: 'bash' - run: > - `vcpkg fetch nuget | tail -n 1` - sources add - -source "https://nuget.pkg.github.com/pycurl/index.json" - -storepasswordincleartext - -name "GitHub" - -username "pycurl" - -password "${{ secrets.GITHUB_TOKEN }}" + run: | + nuget="$(vcpkg fetch nuget | tail -n 1)" + "${nuget}" \ + 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 "${{ secrets.GITHUB_TOKEN }}" \ + -source "https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json" - name: Install packages run: vcpkg install curl[core,http2,non-http,openssl,ssh]:x86-windows - name: Install dependencies -- cgit v1.2.1