workflows/get-llvm-version: Add full-no-suffix output variable (#174647)
This commit is contained in:
parent
b2d90d4da0
commit
b77f7df497
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/release-binaries.yml
vendored
2
.github/workflows/release-binaries.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue