blob: d15069f0d6af74e07dcfdb2a087faafe452469c6 [file] [log] [blame]
name: LLVM Project Version Check
on:
push:
branches:
- 'release/**'
pull_request:
jobs:
version_check:
runs-on: ubuntu-latest
steps:
- name: Fetch LLVM sources
uses: actions/checkout@v2
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