workflows/get-llvm-version: Add full-no-suffix output variable (#174647)

This commit is contained in:
Tom Stellard 2026-01-10 02:31:16 -08:00 committed by GitHub
parent b2d90d4da0
commit b77f7df497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -13,6 +13,10 @@ outputs:
patch:
description: LLVM patch version
value: ${{ steps.version.outputs.patch }}
full-no-suffix:
description: |
The full LLVM vesion without any suffixes like `-rc` or `git`. This will be `$major.$minor.$patch`
value: ${{ steps.version.outputs.full-no-suffix }}
runs:
using: "composite"
@ -24,3 +28,5 @@ runs:
for v in major minor patch; do
echo "$v=`llvm/utils/release/get-llvm-version.sh --$v`" >> $GITHUB_OUTPUT
done
echo "full-no-suffix=$(llvm/utils/release/get-llvm-version.sh)" >> $GITHUB_OUTPUT

View file

@ -96,7 +96,7 @@ jobs:
- name: Collect Variables
id: vars
env:
LLVM_VERSION_FROM_SOURCE: ${{ format('{0}.{1}.{2}', steps.version-from-source.outputs.major, steps.version-from-source.outputs.minor, steps.version-from-source.outputs.patch) }}
LLVM_VERSION_FROM_SOURCE: ${{ steps.version-from-source.outputs.full-no-suffix }}
shell: bash
# In order for the test-release.sh script to run correctly, the LLVM
# source needs to be at the following location relative to the build dir: