-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (38 loc) · 1.12 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: benchmark
on:
workflow_run:
workflows: [tests]
types: [completed]
jobs:
run-benchmark:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Email
run: git config --local user.email [email protected]
- name: Configure Name
run: git config --local user.name benchmark.yml
- name: Git Status
run: git status
- name: Run Benchmark
run: make microbenchmark CXX=clang++ CC=clang
- name: Stash Benchmark Results
run: git add micro-benchmark.md
- name: Save Changes
run: git commit -m "run::$(date)"
- name: Push Changes To Benchmark Branch
run: git push
run-benchmark-failed:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: rquirements failed
run: echo the tests failed
- name: force fail benchmark workflow
run: exit 1