Files
llvm/.github/workflows/version-check.yml
Aiden Grossman ca44e11e00 [CI][Github] Bump actions/checkout to v5.0.0 (#153340)
https://github.com/actions/checkout/releases/tag/v5.0.0 was released a
couple of days ago (still new, sufficient bake time that there probably
is not a significant security issue). There are few changes, with the
most notable ones being dependency bumps, specifically the node version
bump to v24. This requires actions runner v2.327.1. I will land this
after all of the infrastructure has been moved over to the new runner
version.
2025-08-13 21:17:53 -07:00

32 lines
803 B
YAML

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-24.04
steps:
- name: Fetch LLVM sources
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Install dependencies
run: |
pip install --require-hashes -r ./llvm/utils/git/requirements.txt
- name: Version Check
run: |
version=$(grep -o 'LLVM_VERSION_\(MAJOR\|MINOR\|PATCH\) [0-9]\+' cmake/Modules/LLVMVersion.cmake | cut -d ' ' -f 2 | tr "\n" "." | sed 's/.$//g')
.github/workflows/version-check.py "$version"