Skip to content

Commit 1a73646

Browse files
committed
Handle tagged prereleases separately from releases and other prereleases
1 parent b7b808d commit 1a73646

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ jobs:
10011001
<<: *base_ubuntu2404_xlarge
10021002
steps:
10031003
- build
1004+
- run: cat prerelease.txt
10041005

10051006
# x64 ASAN build, for testing for memory related bugs
10061007
b_ubu_asan: &b_ubu_asan

scripts/prerelease_suffix.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
1111
GNU_DATE=gdate
1212
fi
1313

14-
if [[ $FORCE_RELEASE != "" || $git_tag == v* ]]; then
14+
if [[ $FORCE_RELEASE != "" || $git_tag =~ ^v[0-9.]+$ ]]; then
1515
echo -n
16+
elif [[ $git_tag =~ ^v[0-9.]+-pre. ]]; then
17+
echo -n "pre.${git_tag#*-pre.}"
1618
else
1719
# Use last commit date rather than build date to avoid ending up with builds for
1820
# different platforms having different version strings (and therefore producing different bytecode)

0 commit comments

Comments
 (0)