Skip to content

on-sdk-update

on-sdk-update #1228

Workflow file for this run

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