27 lines · yaml
1name: Get LLVM Version2description: >-3 Get the LLVM version from the llvm-project source tree. This action assumes4 the llvm-project sources have already been checked out into GITHUB_WORKSPACE.5 6outputs:7 major:8 description: LLVM major version9 value: ${{ steps.version.outputs.major }}10 minor:11 description: LLVM minor version12 value: ${{ steps.version.outputs.minor }}13 patch:14 description: LLVM patch version15 value: ${{ steps.version.outputs.patch }}16 17runs:18 using: "composite"19 steps:20 - name: Get Version21 shell: bash22 id: version23 run: |24 for v in major minor patch; do25 echo "$v=`llvm/utils/release/get-llvm-version.sh --$v`" >> $GITHUB_OUTPUT26 done27