Skip to content

Commit

Permalink
reduce a bit components
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido committed Oct 25, 2024
1 parent 904caef commit 51ea7f9
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/win-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ 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++
run: |
Start-Process -FilePath "C:\vs-cache\vs_buildtools.exe" -ArgumentList `
"--quiet", "--wait", "--norestart", "--nocache", `
"--add", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", `
"--add", "Microsoft.Component.MSBuild", `
"--add", "Microsoft.VisualStudio.Component.VC.v141.x86.x64" -Wait
- name: Cache pip packages
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -82,18 +102,6 @@ jobs:
autoconf-wrapper
automake
- name: Install VS 15 2017 Community edition
run: |
Invoke-WebRequest -Uri "https://aka.ms/vs/15/release/vs_community.exe" -OutFile "vs_community.exe"
Start-Process -FilePath ".\vs_community.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", `
"--add", "Microsoft.Component.MSBuild", `
"--add", "Microsoft.VisualStudio.Component.VC.140", `
"--add", "Microsoft.VisualStudio.Component.VC.v141.x86.x64" -Wait
- name: Cache CMake and Bazel installations
id: cache-tools
uses: actions/cache@v4
Expand Down

0 comments on commit 51ea7f9

Please sign in to comment.