|
83 | 83 | - name: Run benchmarks |
84 | 84 | run: | |
85 | 85 | python3 -m asv run --config $ASV_CONFIG -v |
| 86 | + ls -l .asv/results |
| 87 | + echo ">>> results/machine" |
| 88 | + ls -l .asv/results/${{ matrix.name }} |
86 | 89 | env: |
87 | 90 | PKG_CONFIG_PATH: ${{ github.workspace }} |
88 | 91 |
|
| 92 | + - name: Store/Upload benchmark results |
| 93 | + uses: actions/upload-artifact@v4 |
| 94 | + with: |
| 95 | + name: ${{ matrix.name }} |
| 96 | + path: .asv/results/* |
| 97 | + if-no-files-found: error |
| 98 | + |
| 99 | + combine-and-publish: |
| 100 | + runs-on: ubuntu-latest |
| 101 | + needs: bench |
| 102 | + steps: |
| 103 | + - name: Check out the repository |
| 104 | + uses: actions/checkout@v4 |
| 105 | + with: |
| 106 | + fetch-depth: 0 # To fetch all commits to be able to generate benchmarks html |
| 107 | + token: ${{ secrets.AWS_BENCHMARKS }} |
| 108 | + |
| 109 | + - name: Collect past runs |
| 110 | + run: | |
| 111 | + git checkout gh-pages |
| 112 | + mkdir -p .asv/resuls |
| 113 | + cp -r results .asv/results |
| 114 | +
|
| 115 | + - name: Download all artifacts from benchmarking runs |
| 116 | + uses: actions/download-artifact@v4 |
| 117 | + |
| 118 | + - name: Combine the runs |
| 119 | + run: | |
| 120 | + cp -r gh-skylake/* .asv/results |
| 121 | + cp -r gh-graviton/* .asv/results |
| 122 | + ls -l |
| 123 | + ls -l .asv/results |
| 124 | + git checkout main |
| 125 | + ls -l |
| 126 | +
|
| 127 | + - name: Set up Python |
| 128 | + uses: actions/setup-python@v4 |
| 129 | + with: |
| 130 | + python-version: '3.11' |
| 131 | + |
| 132 | + - name: Set up ASV and generate the html |
| 133 | + run: | |
| 134 | + pip install asv |
| 135 | + asv machine --yes --config $ASV_CONFIG |
| 136 | + asv publish --config $ASV_CONFIG -v |
| 137 | +
|
| 138 | + - name: Upload the results |
| 139 | + run: | |
| 140 | + git config --global user.email "project@openblas" |
| 141 | + git config --global user.name "OB benchmark bot" |
| 142 | + # git commit -m "Update benchmarks" |
| 143 | + asv gh-pages |
0 commit comments