File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,17 +92,22 @@ jobs:
9292 steps :
9393 - name : Set up environment
9494 if : startsWith(matrix.os, 'windows-')
95- shell : bash
95+ shell : pwsh
9696 run : |
97- choco.exe install \
98- --no-progress \
99- --yes \
100- --ignore-detected-reboot \
101- --allow-downgrade \
102- --install-arguments "'ADDLOCAL=ALL'" \
103- ${{ endsWith(matrix.version, '-win32') && '--x86' || '' }} mitkerberos || true
104-
105- echo "C:\Program Files${{ endsWith(matrix.version, '-win32') && ' (x86)' || '' }}\MIT\Kerberos\bin;$PATH" >> $GITHUB_PATH
97+ $arch = ${{ endsWith(matrix.version, '-win32') && '--x86' || '' }}
98+ $chocoArgs = @(
99+ 'install',
100+ '--no-progress',
101+ '--yes',
102+ '--ignore-detected-reboot',
103+ '--allow-downgrade',
104+ '--install-arguments', 'ADDLOCAL=ALL'
105+ if ($arch) { $arch }
106+ )
107+ choco.exe install @chocoArgs mitkerberos
108+
109+ 'C:\Program Files${{ endsWith(matrix.version, '-win32') && ' (x86)' || '' }}\MIT\Kerberos\bin' |
110+ Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
106111
107112 - name : Download gssapi sdist
108113 uses : actions/download-artifact@v8
You can’t perform that action at this time.
0 commit comments