Benchmark #1313
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: Benchmark | |
on: | |
push: | |
branches: [ main ] | |
schedule: | |
- cron: '57 7 * * *' | |
workflow_dispatch: | |
repository_dispatch: | |
types: [on-sdk-update] | |
jobs: | |
bench: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install build dependencies. | |
run: | | |
sudo apt-get install cmake ninja-build | |
- name: Check out the test suite. | |
uses: actions/checkout@v2 | |
- name: Fetch the prerelase llvm-mos SDK. | |
run: | | |
curl -LO https://github.com/llvm-mos/llvm-mos-sdk/releases/download/prerelease/llvm-mos-linux.tar.xz | |
tar -xvf llvm-mos-linux.tar.xz | |
- name: Build the benchmarks. | |
run: | | |
mkdir build | |
cd build | |
cmake -DLLVM_MOS=$GITHUB_WORKSPACE/llvm-mos \ | |
-C../cmake/caches/Os.cmake \ | |
-C../cmake/caches/target-mos.cmake \ | |
-G Ninja \ | |
.. | |
ninja SingleSource/Benchmarks/all | |
- name: Run the benchmark. | |
run: | | |
LLVM_MOS=$GITHUB_WORKSPACE/llvm-mos LLVM_MOS_SDK=$GITHUB_WORKSPACE/llvm-mos ./bench.sh > output.json | |
cat output.json | |
- name: Store the benchmark results. | |
uses: llvm-mos/github-action-benchmark@master | |
with: | |
name: Benchmark -Os | |
tool: 'googlecpp' | |
output-file-path: output.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true |