@@ -170,6 +170,41 @@ jobs:
170170 run : sudo apt-get install llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools
171171 - name : Install Link deps
172172 run : sudo apt-get install libc-dev build-essential
173+ - name : Run bench
174+ run : ./bench/bench.sh | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' >> bench.md
175+
176+ - name : Find Bench Comment
177+ continue-on-error : true
178+ uses : peter-evans/find-comment@v3
179+ id : fc
180+ with :
181+ issue-number : ${{ github.event.pull_request.number }}
182+ comment-author : ' github-actions[bot]'
183+ body-includes : Benchmarking (Linux)
184+ - name : Create or update bench comment
185+ continue-on-error : true
186+ uses : peter-evans/create-or-update-comment@v4
187+ with :
188+ comment-id : ${{ steps.fc.outputs.comment-id }}
189+ issue-number : ${{ github.event.pull_request.number }}
190+ body-path : bench.md
191+ edit-mode : replace
192+ bench-macos :
193+ name : Bench macOS
194+ runs-on : macos-14
195+ env :
196+ CARGO_TERM_COLOR : always
197+ LIBRARY_PATH : /opt/homebrew/lib
198+ MLIR_SYS_190_PREFIX : /opt/homebrew/opt/llvm@19
199+ LLVM_SYS_191_PREFIX : /opt/homebrew/opt/llvm@19
200+ TABLEGEN_190_PREFIX : /opt/homebrew/opt/llvm@19
201+ steps :
202+ - uses : actions/checkout@v4
203+ - name : Rustup toolchain install
204+ uses : dtolnay/rust-toolchain@1.85.0
205+ - uses : homebrew/actions/setup-homebrew@master
206+ - name : install llvm
207+ run : brew install llvm@19
173208 - name : Run bench
174209 run : ./bench/bench.sh | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' > bench.md
175210
@@ -180,7 +215,7 @@ jobs:
180215 with :
181216 issue-number : ${{ github.event.pull_request.number }}
182217 comment-author : ' github-actions[bot]'
183- body-includes : Benchmarking
218+ body-includes : Benchmarking (macOS)
184219 - name : Create or update bench comment
185220 continue-on-error : true
186221 uses : peter-evans/create-or-update-comment@v4
0 commit comments