Files
clang-p2996/.github/workflows/version-check.yml
Tom Stellard 9d05de2a91 Import CI tests from the release branch
The tests still only run on pushes or pull requests for the release
branch, but having it in the main branch means we don't have to copy
the tests every time we create a new release branch.

Reviewed By: asl

Differential Revision: https://reviews.llvm.org/D129526
2022-07-26 16:53:24 -07:00

30 lines
695 B
YAML

name: LLVM Project Version Check
on:
push:
branches:
- 'release/**'
pull_request:
branches:
- 'release/**'
jobs:
version_check:
if: github.repository_owner == 'llvm'
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