Skip to content

[Draft] Compare microkernel IR against main for PRs #21

[Draft] Compare microkernel IR against main for PRs

[Draft] Compare microkernel IR against main for PRs #21

Workflow file for this run

name: Run benchmark and upload IRs
run-name: ${{ inputs.run_name }}
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
prepare:
name: Prepare
runs-on: Linux
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Inputs
run: |
cat <<EOF
${{ toJSON(inputs) }}
EOF
- name: Matrix
id: matrix
run: |
if [[ -n "${{ inputs.runner_label }}" ]]; then
matrix='{"python": ["3.9"]}'
else
matrix='{"python": ["3.9"], "driver": ["rolling", "lts"]}'
fi
echo "matrix=$matrix" | tee -a $GITHUB_OUTPUT
run-kernels-to-compare:
name: run-kernels
needs: prepare
strategy:
matrix: ${{ fromJson(needs.prepare.outputs.matrix) }}
uses: ./.github/workflows/build-reusable.yml
with:
# For this workflow, use max1550 runners to reduce cache consumption on max1100 runners.
python_version: ${{ matrix.python }}
run_name: ${{ 'compare-ir' }}
use_pyenv_python: ${{false }}