Skip to content

Commit b9670d8

Browse files
authored
chore: pin windows sdk version in tests
1 parent adb29ff commit b9670d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/cpp/integration-tests.bats

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ bats_require_minimum_version 1.5.0
55
setup_file() {
66
# Installing the Windows SDK/CRT takes a long time.
77
# When still valid, use the installation from cache.
8+
WINDOWS_SDK_VERSION=10.0.26100
89

9-
xwin --accept-license --cache-dir ${BATS_TEST_DIRNAME}/.xwin-hash list
10+
xwin --accept-license --sdk-version "${WINDOWS_SDK_VERSION}" --cache-dir ${BATS_TEST_DIRNAME}/.xwin-hash list
1011
HASH_LIST_MANIFEST=$(sha256sum ${BATS_TEST_DIRNAME}/.xwin-hash/dl/manifest*.json | awk '{ print $1 }')
1112
HASH_CACHED_MANIFEST=
1213

@@ -15,7 +16,7 @@ setup_file() {
1516
fi
1617

1718
if [[ $HASH_LIST_MANIFEST != $HASH_CACHED_MANIFEST ]]; then
18-
xwin --accept-license --cache-dir ${BATS_TEST_DIRNAME}/.xwin-cache splat --preserve-ms-arch-notation
19+
xwin --accept-license --sdk-version "${WINDOWS_SDK_VERSION}" --cache-dir ${BATS_TEST_DIRNAME}/.xwin-cache splat --preserve-ms-arch-notation
1920
fi
2021

2122
ln -sf ${BATS_TEST_DIRNAME}/.xwin-cache/splat/ /winsdk

0 commit comments

Comments
 (0)