`cmake_tests.yml` has a `cmake_version` input and passes it to
`scripts/cmake-build.sh` as `CMAKE_VERSION`, but the script does not use
that value, so the CMake from the image's apt is used instead.
With this patch, when `CMAKE_VERSION` is set, the script downloads the
release from Kitware's GitHub releases on Linux (x86_64/aarch64) and
uses it for the build.
This lets projects that need a newer CMake than the image's apt provides
use the shared workflow by setting `cmake_version`.
This is blocking https://github.com/apple/swift-certificates/pull/325.