-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (38 loc) · 1.08 KB
/
benchmark_pull_request.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
name: benchmark_pull_request
on:
push:
branches:
- 'hacl-star-**'
pull_request:
workflow_dispatch:
merge_group:
jobs:
default:
runs-on: ubuntu-latest
steps:
- name: Setup
run: |
sudo apt-get update
sudo apt-get install ninja-build
sudo apt-get install python3 python3-scipy python3-pandas
sudo apt-get install clang
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Checkout hacl-packages (${{ github.ref }})
uses: actions/checkout@v3
with:
path: pr
- name: Build hacl-packages (${{ github.ref }})
working-directory: pr
run: ./mach build --release --benchmarks
- name: Checkout hacl-packages (main)
uses: actions/checkout@v3
with:
path: main
ref: main
- name: Build hacl-packages (main)
working-directory: main
run: ./mach build --release --benchmarks
- name: Run benchmarks
working-directory: pr
run: ./mach benchmark --compare ../main