32 lines · yaml
1name: LLVM Project Version Check2 3on:4 push:5 branches:6 - 'release/**'7 pull_request:8 branches:9 - 'release/**'10 11permissions:12 contents: read13 14jobs:15 version_check:16 if: github.repository_owner == 'llvm'17 runs-on: ubuntu-24.0418 steps:19 - name: Fetch LLVM sources20 uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.021 with:22 fetch-depth: 023 24 - name: Install dependencies25 run: |26 pip install --require-hashes -r ./llvm/utils/git/requirements.txt27 28 - name: Version Check29 run: |30 version=$(grep -o 'LLVM_VERSION_\(MAJOR\|MINOR\|PATCH\) [0-9]\+' cmake/Modules/LLVMVersion.cmake | cut -d ' ' -f 2 | tr "\n" "." | sed 's/.$//g')31 .github/workflows/version-check.py "$version"32