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