kokoro: Use cmake-3.31.2 on linux and windows (#5918)

diff --git a/kokoro/scripts/linux/build-docker.sh b/kokoro/scripts/linux/build-docker.sh
index b2c034d..eaa176b 100755
--- a/kokoro/scripts/linux/build-docker.sh
+++ b/kokoro/scripts/linux/build-docker.sh
@@ -51,7 +51,7 @@
 fi
 
 if [ $TOOL = "cmake" ]; then
-  using cmake-3.17.2
+  using cmake-3.31.2
   using ninja-1.10.0
 
   # Possible configurations are:
@@ -116,7 +116,7 @@
   cd $KOKORO_ARTIFACTS_DIR
   tar czf install.tgz install
 elif [ $TOOL = "cmake-smoketest" ]; then
-  using cmake-3.17.2
+  using cmake-3.31.2
   using ninja-1.10.0
 
   # Get shaderc.
@@ -157,7 +157,7 @@
   ctest --output-on-failure -j4
   echo $(date): ctest completed.
 elif [ $TOOL = "cmake-android-ndk" ]; then
-  using cmake-3.17.2
+  using cmake-3.31.2
   using ndk-r25c
   using ninja-1.10.0
 
diff --git a/kokoro/scripts/windows/build.bat b/kokoro/scripts/windows/build.bat
index fe15f2d..d5c0fe2 100644
--- a/kokoro/scripts/windows/build.bat
+++ b/kokoro/scripts/windows/build.bat
@@ -21,8 +21,8 @@
 set BUILD_TYPE=%1
 set VS_VERSION=%2
 
-:: Force usage of python 3.6
-set PATH=C:\python36;"C:\Program Files\cmake-3.23.1-windows-x86_64\bin";%PATH%
+:: Force usage of python 3.6, cmake 3.31.2
+set PATH=C:\python36;c:\cmake-3.31.2\bin;%PATH%
 
 :: #########################################
 :: set up msvc build env
@@ -63,6 +63,7 @@
   set CMAKE_FLAGS=-DSPIRV_SKIP_TESTS=ON %CMAKE_FLAGS%
 ) 
 
+cmake --version
 cmake %CMAKE_FLAGS% ..
 
 if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%