| 1234567891011121314151617181920212223242526272829 |
- # Copyright (C) 2019 Intel Corporation. All rights reserved.
- # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- name: confirm version.h stay in sync
- on:
- workflow_call:
- permissions:
- contents: read
- jobs:
- confirm_version:
- runs-on: ubuntu-latest
- steps:
- - name: checkout
- uses: actions/checkout@v6.0.1
- - name: cmake execute to generate version.h
- run: cmake -B build_version -S .
- - name: confirm version.h
- run: |
- if [ -z "$(git status --porcelain | grep version.h)" ]; then
- echo "version.h is in sync"
- else
- echo "version.h is not in sync"
- exit 1
- fi
|