# Check your cmake\_minimum\_required with \`get-cmake\`

**URL:** https://discourse.cmake.org/t/check-your-cmake-minimum-required-with-get-cmake/7257
**Category:** Community
**Created:** [January 16, 2023, 10:54pm UTC](https://discourse.cmake.org/t/check-your-cmake-minimum-required-with-get-cmake/7257 "2023-01-16T22:54:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![buildSystemPerson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/buildsystemperson/32/2851_2.png) [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)
#### Post date: [January 16, 2023, 10:54pm UTC](https://discourse.cmake.org/t/check-your-cmake-minimum-required-with-get-cmake/7257/1 "2023-01-16T22:54:46Z")

</div>

> **[GitHub - lukka/get-cmake: Install and Cache latest CMake and Ninja for your...](https://github.com/lukka/get-cmake)**
>
> Install and Cache latest CMake and Ninja for your workflows on your GitHub - GitHub - lukka/get-cmake: Install and Cache latest CMake and Ninja for your workflows on your GitHub

This GitHub action is very useful for ensuring your `cmake_minimum_required` is valid.

Recently we had a release where our CMake code wasn’t compliant with the `cmake_minimum_required` we advertised.

Now this problem is solved with `get-cmake`. We won’t have this same issue in the future.

```auto
  test-cmake-minimum:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: lukka/get-cmake@latest
        with:
          # Will add the specified CMake version to the PATH
          cmakeVersion: 3.10.2
      - name: CMake Version
        run: cmake --version
      ....

```

TLDR:

Test minimum CMake version you advertise! And if you are on GitHub and use github-actions look into `get-cmake`
