Check your cmake_minimum_required with `get-cmake`

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.

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


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

1 Like