add benchmark outputs #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run benchmarks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run-benchmarks: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/kuleuven-micas/snax:v0.2.2 | |
steps: | |
- name: Install git lfs | |
run: apt-get install -y git-lfs | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
persist-credentials: false | |
- name: Install snax-mlir | |
run: python3 -m pip install '-e.[dev,viz]' | |
- name: Run benchmarks | |
run: python3 genbenchmark.py | |
working-directory: benchmarks/${{ matrix.kernel }} | |
- name: Checkout gh-pages branch | |
run: | | |
git config --global --add safe.directory /__w/snax-mlir/snax-mlir | |
git config --local user.name "GitHub Action" | |
git config --local user.email "action@github.com" | |
git fetch origin gh-pages | |
git checkout gh-pages | |
- name: Move benchmark files to docs | |
run: | | |
rm -rf docs/benchmarks/${{ matrix.kernel }} | |
mkdir docs/benchmarks/${{ matrix.kernel }} | |
mv benchmarks/${{ matrix.kernel}}/output/* docs/benchmarks/${{ matrix.kernel }}/ | |
- name: Commit and push benchmark files | |
run: | | |
git pull | |
git add docs/benchmarks/${{ matrix.kernel}} | |
git commit -m "Update benchmark files and images" | |
git push origin gh-pages | |
git push --force-with-lease https://x-access-token:${{ secrets.SNAX_MLIR_TOKEN }}@github.com/kuleuven-micas/snax-mlir.git gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
matrix: | |
kernel: [dense_matmul] |