mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 17:45:07 +08:00
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.
32 lines
803 B
YAML
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"
|