Skip to content

Commit

Permalink
copy results to a gh-pages clone
Browse files Browse the repository at this point in the history
  • Loading branch information
ev-br committed Jun 16, 2024
1 parent 90d9eef commit bfe292a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/run_x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
# GITHUB_TOKEN: ${{ secrets.OB_BENCH_TOKEN }}
# BENCHMARKS_REPO: ev-br/ob-bench-asv
RESULTS_DIR_ROOT: gh_pages
ASV_CONFIG: asv.conf.json
MACHINE_NAME: github-actions-x86 # to identify github actions machine as hostname changes everytime

Expand Down Expand Up @@ -55,4 +55,34 @@ jobs:
env:
PKG_CONFIG_PATH: ${{ github.workspace }}

- name: Copy results to a gh-pages branch clone
run: |
git clone -b gh-pages --single-branch https://github.com/OpenMathLib/BLAS-Benchmarks.git ~/$RESULTS_DIR_ROOT
echo ">>>> clone done"
RESULTS_DIR=~/$RESULTS_DIR_ROOT/results
if [ -d "$RESULTS_DIR" ]
then
echo ">> "results/$MACHINE_NAME
ls -l
cp -r $RESULTS_DIR/$MACHINE_NAME/* .asv/results/$MACHINE_NAME/
else
echo "results/ directory does not exist in the benchmarks repository"
fi
asv publish --config $ASV_CONFIG -v
echo ">>> ."
ls -l .
echo ">>> .asv"
ls -l .asv
echo ">>> .asv/results"
ls -l .asv/results
cp -r .asv/html/* ~/$RESULTS_DIR_ROOT/
cp -r .asv/results ~/$RESULTS_DIR_ROOT/
echo ">>> @ " $RESULTS_DIR_ROOT
ls -l $RESULTS_DIR_ROOT
3 changes: 1 addition & 2 deletions asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@

// The directory (relative to the current directory) that the html tree
// should be written to. If not provided, defaults to "html".
//"html_dir": ".asv/html",
"html_dir": "docs",
"html_dir": ".asv/html",

// The number of characters to retain in the commit hashes.
// "hash_length": 8,
Expand Down

0 comments on commit bfe292a

Please sign in to comment.