diff options
author | Scott Talbert <swt@techie.net> | 2022-03-31 21:53:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 21:53:29 -0400 |
commit | 136595bb217272ce10ad45ed4c8ce2d9361c14c4 (patch) | |
tree | 0383786d923256477e3b9b5d6a641feefa45b0f3 /.github/workflows | |
parent | e9332d8e60bde93803543a1a76746d83c6fe953d (diff) | |
parent | 56153aa355b5b40bf2be8670b9a45bbc6b970540 (diff) | |
download | pycurl-136595bb217272ce10ad45ed4c8ce2d9361c14c4.tar.gz |
Merge pull request #746 from swt2c/ci_windows_debug
Fix Windows CI vcpkg caching by setting API key too
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci-windows.yml | 20 |
1 files 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 |