Skip to content

Commit

Permalink
do not cache vs
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido committed Oct 25, 2024
1 parent 935ec05 commit e933cb4
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/win-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache Visual Studio Build Tools Installer
uses: actions/cache@v4
with:
path: C:\vs-cache\vs_buildtools.exe
key: vs-installer-${{ runner.os }}

- name: Download VS 2017 Build Tools Installer if Cache Miss
if: steps.cache.outputs.cache-hit != 'true'
run: |
New-Item -ItemType Directory -Force -Path C:\vs-cache
Invoke-WebRequest -Uri "https://aka.ms/vs/15/release/vs_buildtools.exe" -OutFile "C:\vs-cache\vs_buildtools.exe"
- name: Install Minimal VS 2017 Build Tools for C++
- name: Install Visual Studio Build Tools
run: |
Start-Process -FilePath "C:\vs-cache\vs_buildtools.exe" -ArgumentList `
"--quiet", "--wait", "--norestart", "--nocache", `
Invoke-WebRequest -Uri "https://aka.ms/vs/15/release/vs_buildtools.exe" -OutFile "vs_buildtools.exe"
Start-Process -FilePath ".\vs_buildtools.exe" -ArgumentList `
"--quiet", "--wait", "--norestart", "--nocache", `
"--add", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", `
"--add", "Microsoft.VisualStudio.Component.Windows81SDK", `
"--add", "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", `
Expand Down

0 comments on commit e933cb4

Please sign in to comment.