Skip to content

Commit 807f1c7

Browse files
committed
CI: copy results to a gh-pages clone directory
1 parent 57405d5 commit 807f1c7

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/run_x86.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
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

@@ -51,7 +51,39 @@ jobs:
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

0 commit comments

Comments
 (0)