Reformat qml #1152
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: Benchmarks | |
on: | |
push: | |
branches: | |
- '*' | |
paths-ignore: | |
- 'README.md' | |
- 'examples/**' | |
- 'scripts/*' | |
- 'web/**' | |
- 'tests/**' | |
- 'unit/**' | |
- '.github/workflows/**' | |
- '!.github/workflows/benchmark.yml' | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: "./.github/workflows/setup" | |
- name: Install nix | |
uses: "./.github/workflows/get-nix" | |
with: | |
target: ${{ inputs.target }} | |
- name: Cache Nix Store | |
uses: actions/cache@v4 | |
id: nix-cache | |
with: | |
path: /tmp/nixcache | |
key: ${{ runner.os }}-${{ env.nixHash }}-nix-cache | |
- name: Import Nix Store Cache | |
if: "steps.nix-cache.outputs.cache-hit == 'true'" | |
shell: bash | |
run: | | |
nix-store --import < /tmp/nixcache | |
sudo rm -rf /tmp/nixcache | |
- name: Run benchmarks | |
run: | | |
set -ex | |
export LD_LIBRARY_PATH=`pwd`/build/onetbb/lib | |
nix build -L .#benchmarks | |
rm result | |
nix run -L .#benchmarks > all_benchmark_results.json | |
cat all_benchmark_results.json | |
- name: Store benchmark result | |
uses: rhysd/github-action-benchmark@v1 | |
if: ${{ github.ref_name == 'develop' }} | |
with: | |
tool: 'googlecpp' | |
output-file-path: all_benchmark_results.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
comment-on-alert: true | |
alert-threshold: '200%' | |
alert-comment-cc-users: '@disorderedmaterials/dissolve-devs' |