File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88env :
99# GITHUB_TOKEN: ${{ secrets.OB_BENCH_TOKEN }}
10- # BENCHMARKS_REPO: ev-br/ob-bench-asv
10+ RESULTS_DIR_ROOT : gh_pages
1111 ASV_CONFIG : asv.conf.json
1212 MACHINE_NAME : github-actions-x86 # to identify github actions machine as hostname changes everytime
1313
5151 run : |
5252 echo ${{ github.workspace}}
5353 asv run --config $ASV_CONFIG -v
54+ asv publish --config $ASV_CONFIG -v
5455 env :
5556 PKG_CONFIG_PATH : ${{ github.workspace }}
5657
58+ - name : Copy results to a gh-pages branch clone
59+ run : |
60+ git clone -b gh-pages --single-branch https://github.com/OpenMathLib/BLAS-Benchmarks.git ~/$RESULTS_DIR_ROOT
61+ echo ">>>> clone done"
62+
63+ RESULTS_DIR=~/$RESULTS_DIR_ROOT/results
64+ if [ -d "$RESULTS_DIR" ]
65+ then
66+ echo ">> "results/$MACHINE_NAME
67+ ls -l
68+
69+ cp -r $RESULTS_DIR/$MACHINE_NAME/* .asv/results/$MACHINE_NAME/
70+ else
71+ echo "results/ directory does not exist in the benchmarks repository"
72+ mkdir -p $RESULTS_DIR
73+ fi
74+
75+ asv publish --config $ASV_CONFIG -v
76+ echo ">>> ."
77+ ls -l .
78+ echo ">>> .asv"
79+ ls -l .asv
80+ echo ">>> .asv/results"
81+ ls -l .asv/results
82+
83+ cp -r .asv/html/* ~/$RESULTS_DIR_ROOT/
84+ cp -r .asv/results ~/$RESULTS_DIR_ROOT/
85+
86+ echo ">>> @ " $RESULTS_DIR_ROOT
87+ ls -l ~/$RESULTS_DIR_ROOT
88+
5789
You can’t perform that action at this time.
0 commit comments