Skip to content

Commit 8f2654d

Browse files
committed
Fix x86 check windows
1 parent f6c3a0d commit 8f2654d

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,16 @@ jobs:
203203
- name: Set up environment
204204
if: startsWith(matrix.os, 'windows-')
205205
shell: bash
206-
run: >-
207-
choco.exe install --no-progress --yes --ignore-detected-reboot --allow-downgrade
208-
--install-arguments "'ADDLOCAL=ALL'"
209-
${{ matrix.arch == 'win32' && '--x86' || '' }}
210-
mitkerberos || true
211-
212-
echo "C:\Program Files${{ matrix.arch == 'win32' && ' (x86)' || '' }}\MIT\Kerberos\bin;$PATH" >> $GITHUB_PATH
206+
run: |
207+
choco.exe install \
208+
--no-progress \
209+
--yes \
210+
--ignore-detected-reboot \
211+
--allow-downgrade \
212+
--install-arguments "'ADDLOCAL=ALL'" \
213+
${{ endsWith(matrix.version, '-win32') && '--x86' || '' }} mitkerberos || true
214+
215+
echo "C:\Program Files${{ endsWith(matrix.version, '-win32')' && ' (x86)' || '' }}\MIT\Kerberos\bin;$PATH" >> $GITHUB_PATH
213216
214217
- name: Download sdist
215218
uses: actions/download-artifact@v2

0 commit comments

Comments
 (0)