CI runner can not get CMakeLists.txt file content changed.

Hello everyone:

I met a problem that the CI runner cannot get CMakeLists.txt file content changed.

I used the GitLab Community Edtion.

When I changed the content of CMakeLists.txt, and using the terminal to add it into the repository.

like something below:

$git add CMakeLists.txt
$git commit -m "do something such as MESSAGE to print log"
$git push origin master

This operation will trigger the gitlab ci runner to build it.

But when I check the build log, I did not find the message that I want to print.

If the main.cpp file was changed, the gitlab ci runner will get the new content.

In my .gitlab-ci.yml, I cache all files without distinguishing the type of *.cpp or *.txt.

Part of yaml is below:

stages:
  - prebuild
  - build
variables:
  GRADLE_USER_HOME: "$CI_PROJECT_DIR/.gradle"

# prebuild stage
do prebuild job:
  stage: prebuild
  variables:
    GIT_STRATEGY: clone
  script:
    - ls -la
  cache:
    key: repo_dependencies
    paths:
      - $CI_PROJECT_DIR/
    policy: pull-push

The CMakeLists.txt was in the $CI_PROJECT_DIR/ subdirectory.

Any help will be appreciated.