kokoro: use cmake-3.31.2 in kokoro bots

Fixed: crbug.com/384052886
Change-Id: I8b1322936decef263fa4453c9942d9e91559c9e6
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/74528
Reviewed-by: Shahbaz Youssefi <syoussefi@google.com>
Commit-Queue: Shahbaz Youssefi <syoussefi@google.com>
Tested-by: Shahbaz Youssefi <syoussefi@google.com>
diff --git a/tests/kokoro/gcp_ubuntu/docker.sh b/tests/kokoro/gcp_ubuntu/docker.sh
index 0b93f52..0e27b3a 100755
--- a/tests/kokoro/gcp_ubuntu/docker.sh
+++ b/tests/kokoro/gcp_ubuntu/docker.sh
@@ -43,7 +43,7 @@
 
 . /bin/using.sh # Declare the bash `using` function for configuring toolchains.
 
-using cmake-3.17.2
+using cmake-3.31.2
 using gcc-9
 
 status "Cloning to clean source directory at '${SRC_DIR}'"
diff --git a/tests/kokoro/gcp_windows/continuous.bat b/tests/kokoro/gcp_windows/continuous.bat
index 439a6ec..7289943 100644
--- a/tests/kokoro/gcp_windows/continuous.bat
+++ b/tests/kokoro/gcp_windows/continuous.bat
@@ -12,10 +12,11 @@
 
 cd %SRC%\build || goto :error
 
-REM The currently used OS image comes with CMake 3.17.3. If a newer version is
-REM required one can update the image (go/radial/kokoro_windows_image), or
-REM uncomment the line below.
+REM Use cmake-3.31.2 from the OS image.
+REM If a newer version is required one can update the image (go/radial/kokoro_windows_image),
+REM or REM uncomment the line below.
 REM choco upgrade cmake -y --limit-output --no-progress
+set PATH=c:\cmake-3.31.2\bin;%PATH%
 cmake --version
 
 rem To use ninja with CMake requires VC env vars