We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3ba9e5 commit 2ce7b53Copy full SHA for 2ce7b53
.github/workflows/windows.yml
@@ -132,9 +132,11 @@ jobs:
132
run: |
133
$root = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
134
Import-Module "$root\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
135
+ $OldEnv = ls env:
136
Enter-VsDevShell -VsInstallPath $root -DevCmdArguments "-arch=${{ matrix.arch }}"
137
+ $NewEnv = ls env:
138
- ls env: | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
139
+ Compare-Object $OldEnv $NewEnv -Property Name, Value -CaseSensitive | Where-Object -Property SideIndicator -EQ "=>" | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
140
141
- name: Install dependencies
142
if: ${{ matrix.packages != '' }}
0 commit comments