Skip to content

Commit

Permalink
Install vc141 component in windows-2022 runner for vs2017
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed May 18, 2024
1 parent df7c309 commit 9eb8f0e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/edopro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ jobs:
if: contains(github.event.head_commit.message, env.SKIP_CMD) != true
with:
fetch-depth: 1
- name: Install components
if: (contains(github.event.head_commit.message, env.SKIP_CMD) != true && env.ARCHIVE_NAME == 'installed_x86-windows-static-vs2017.zip')
run: |
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
$componentsToAdd= @(
"Microsoft.VisualStudio.Component.VC.v141.x86.x64"
)
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
# should be run twice
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
- name: Customize vcpkg
if: contains(github.event.head_commit.message, env.SKIP_CMD) != true
shell: bash
Expand Down

0 comments on commit 9eb8f0e

Please sign in to comment.