diff --git a/.github/workflows/postsubmit.yml b/.github/workflows/postsubmit.yml index 1407a4a2587af..699728e4f55da 100644 --- a/.github/workflows/postsubmit.yml +++ b/.github/workflows/postsubmit.yml @@ -318,6 +318,19 @@ jobs: BUILD_NUM_THREADS: 8 CXX: clang++-10 - - name: Run benchmark + - name: Run performance-monitoring run: | - python3 benchmarks/misc/run.py /home/benchmarkbot/benchmark/ + export BENCHMARK_CODE_DIR=`pwd`/benchmarks/misc/ + cd .. + # clone repo + rm -rf performance-monitoring + git clone git@github.com:taichi-dev/performance-monitoring.git + cd performance-monitoring + # update repo (benchmarks code) + cp -r $BENCHMARK_CODE_DIR/* ./benchmarks/ + # run benchmark & store results + ./run.sh + # update repo (push results) + ./scripts/push.sh + env: + PULL_REQUEST_NUMBER: ${{github.event.number}}