The old version in the llvm/actions repo stopped working after the version variables were moved out of llvm/CMakeLists.txt. Composite actions are more simple and don't require javascript, which is why I reimplemented it as a composite action. This will fix the failing abi checks on the release branch.
27 lines
727 B
YAML
27 lines
727 B
YAML
name: Get LLVM Version
|
|
description: >-
|
|
Get the LLVM version from the llvm-project source tree. This action assumes
|
|
the llvm-project sources have already been checked out into GITHUB_WORKSPACE.
|
|
|
|
outputs:
|
|
major:
|
|
description: LLVM major version
|
|
value: ${{ steps.version.outputs.major }}
|
|
minor:
|
|
description: LLVM minor version
|
|
value: ${{ steps.version.outputs.minor }}
|
|
patch:
|
|
description: LLVM patch version
|
|
value: ${{ steps.version.outputs.patch }}
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Get Version
|
|
shell: bash
|
|
id: version
|
|
run: |
|
|
for v in major minor patch; do
|
|
echo "$v=`llvm/utils/release/get-llvm-version.sh --$v`" >> $GITHUB_OUTPUT
|
|
done
|