Skip to content

Commit

Permalink
fixes release-binaries workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
christophkloeffel committed Jul 16, 2024
1 parent 4ab3031 commit ceffa57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Binaries
on:
push:
tags:
- 'llvmorg-*'
- 'bmw-llvm-*'
workflow_dispatch:
inputs:
upload:
Expand All @@ -23,7 +23,7 @@ jobs:
prepare:
name: Prepare to build binaries
runs-on: ubuntu-22.04
if: github.repository == 'llvm/llvm-project'
if: github.repository == 'bmw-software-engineering/llvm-project'
outputs:
release-version: ${{ steps.validate-tag.outputs.release-version }}
release: ${{ steps.validate-tag.outputs.release }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/set-release-binary-outputs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ github_user=$1
tag=$2
upload=$3

if [[ "$github_user" != "tstellar" && "$github_user" != "tru" ]]; then
if [[ "$github_user" != "christophkloeffel" && "$github_user" != "phiwuu" ]]; then
echo "ERROR: User not allowed: $github_user"
exit 1
fi
pattern='^llvmorg-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
pattern='^bmw-llvm-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
echo "$tag" | grep -e $pattern
if [ $? != 0 ]; then
echo "ERROR: Tag '$tag' doesn't match pattern: $pattern"
exit 1
fi
release_version=`echo "$tag" | sed 's/llvmorg-//g'`
release_version=`echo "$tag" | sed 's/bmw-llvm-//g'`
release=`echo "$release_version" | sed 's/-.*//g'`
build_dir=`echo "$release_version" | sed 's,^[^-]\+,final,' | sed 's,[^-]\+-rc\(.\+\),rc\1,'`
rc_flags=`echo "$release_version" | sed 's,^[^-]\+,-final,' | sed 's,[^-]\+-rc\(.\+\),-rc \1 -test-asserts,' | sed 's,--,-,'`
Expand Down

0 comments on commit ceffa57

Please sign in to comment.