Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / .github / workflows / version-check.yml
blobc6d779080bbe73b0c15f812556a1d3881f0ba0ef
1 name: LLVM Project Version Check
3 on:
4   push:
5     branches:
6       - 'release/**'
7   pull_request:
8     branches:
9       - 'release/**'
11 permissions:
12   contents: read
14 jobs:
15   version_check:
16     if: github.repository_owner == 'llvm'
17     runs-on: ubuntu-latest
18     steps:
19       - name: Fetch LLVM sources
20         uses: actions/checkout@v4
21         with:
22           fetch-depth: 0
24       - name: Install dependencies
25         run: |
26           pip install -r ./llvm/utils/git/requirements.txt
28       - name: Version Check
29         run: |
30           version=$(grep -o 'LLVM_VERSION_\(MAJOR\|MINOR\|PATCH\) [0-9]\+' llvm/CMakeLists.txt  | cut -d ' ' -f 2 | tr "\n" "." | sed 's/.$//g')
31           .github/workflows/version-check.py "$version"