check_version_h.yml 678 B

1234567891011121314151617181920212223242526272829
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. name: confirm version.h stay in sync
  4. on:
  5. workflow_call:
  6. permissions:
  7. contents: read
  8. jobs:
  9. confirm_version:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: checkout
  13. uses: actions/checkout@v6.0.1
  14. - name: cmake execute to generate version.h
  15. run: cmake -B build_version -S .
  16. - name: confirm version.h
  17. run: |
  18. if [ -z "$(git status --porcelain | grep version.h)" ]; then
  19. echo "version.h is in sync"
  20. else
  21. echo "version.h is not in sync"
  22. exit 1
  23. fi