Skip to content

Add linux arm build and macos-15 #46

Add linux arm build and macos-15

Add linux arm build and macos-15 #46

Workflow file for this run

name: Bench
on:
push:
branches:
- main
permissions:
deployments: write
contents: write
jobs:
benchmark:
name: Detour check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_C_COMPILER=clang
-DCMAKE_BUILD_TYPE=Release
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release -j
- name: Benchmark
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ${{ steps.strings.outputs.build-output-dir }}/spud.benchmark | tee ${{ github.workspace }}/benchmark_result.txt
- name: Store benchmark result
uses: tashcan/github-action-benchmark@tash
with:
name: Detour Benchmark
tool: "catch2"
output-file-path: benchmark_result.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: "200%"
comment-on-alert: true
fail-on-alert: true