Skip to content

Commit 59780c1

Browse files
committed
[ci] Add release info in perf monitoring
1 parent 4682fe0 commit 59780c1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/scripts/unix-perf-mon.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ export ANDROID_NDK_ROOT=/android-sdk/ndk-bundle
1515

1616
python -m pip install dist/*.whl
1717

18+
TAG=$(git describe --exact-match --tags 2>/dev/null || true)
19+
if [ ! -z "$TAG" ]; then
20+
MORE_TAGS="--tags type=release,release=$TAG"
21+
else
22+
MORE_TAGS=""
23+
fi
24+
1825
git clone https://github.com/taichi-dev/taichi_benchmark
1926
cd taichi_benchmark
2027
pip install -r requirements.txt
21-
python run.py --upload-auth $BENCHMARK_UPLOAD_TOKEN
28+
python run.py --upload-auth $BENCHMARK_UPLOAD_TOKEN $MORE_TAGS

0 commit comments

Comments
 (0)