We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391a3f7 commit ae7523fCopy full SHA for ae7523f
.github/workflows/on-push-verification-in-tree.yml
@@ -42,6 +42,10 @@ jobs:
42
BRANCH="${{ github.base_ref }}" # on: pull_request, otherwise null
43
BRANCH=${BRANCH:-${{ github.ref_name }}} # on: push
44
LLVM_VERSION_LONG=$(echo $BRANCH | grep -oP 'ocl-open-\K\d+') # Eg. 190 for LLVM 19
45
+ if [ -z "$LLVM_VERSION_LONG" ]; then
46
+ echo "[OPENCL-CLANG] Error: Could not parse LLVM version from branch name '$BRANCH'"
47
+ exit 1
48
+ fi
49
LLVM_VERSION_SHORT=${LLVM_VERSION_LONG::-1} # Eg. 19 for LLVM 19
50
echo "llvm_version=$LLVM_VERSION_SHORT" >> $GITHUB_OUTPUT
51
0 commit comments