2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches : [main]
6
6
7
7
permissions :
8
8
# deployments permission to deploy GitHub pages website
@@ -17,46 +17,60 @@ jobs:
17
17
env :
18
18
CARGO_TERM_COLOR : always
19
19
steps :
20
- - name : Install stable toolchain
21
- uses : dtolnay/rust-toolchain@stable
22
- with :
20
+ - name : Install stable toolchain
21
+ uses : dtolnay/rust-toolchain@stable
22
+ with :
23
23
toolchain : stable
24
- - uses : actions/checkout@v3
25
- - name : Run benchmark
26
- run : |
27
- cargo bench --no-fail-fast --bench "criterion_fft" \
28
- --bench "criterion_polynomial" \
29
- -- --output-format bencher | tee output.txt
30
- - name : Store benchmark result
31
- uses : benchmark-action/github-action-benchmark@v1
32
- with :
33
- tool : ' cargo'
34
- output-file-path : output.txt
35
- benchmark-data-dir-path : " ./bench"
36
- github-token : ${{ secrets.GITHUB_TOKEN }}
37
- # Push and deploy GitHub pages branch automatically
38
- auto-push : ${{ github.event_name != 'pull_request' }}
24
+ - uses : actions/checkout@v3
25
+ - name : Run benchmark
26
+ run : |
27
+ cargo bench --no-fail-fast --bench "criterion_fft" \
28
+ --bench "criterion_polynomial" \
29
+ -- --output-format bencher | tee output.txt
30
+ - name : Store benchmark result
31
+ uses : benchmark-action/github-action-benchmark@v1
32
+ with :
33
+ tool : " cargo"
34
+ output-file-path : output.txt
35
+ benchmark-data-dir-path : " ./bench"
36
+ github-token : ${{ secrets.GITHUB_TOKEN }}
37
+ # Push and deploy GitHub pages branch automatically
38
+ auto-push : ${{ github.event_name != 'pull_request' }}
39
39
criterion_bench_macos :
40
40
name : Criterion benches (macOS, Apple sillicon)
41
- runs-on : [self-hosted, macOS]
41
+ runs-on : macos-latest
42
42
env :
43
43
CARGO_TERM_COLOR : always
44
44
steps :
45
- - name : Install stable toolchain
46
- uses : dtolnay/rust-toolchain@stable
47
- with :
45
+ - name : Install stable toolchain
46
+ uses : dtolnay/rust-toolchain@stable
47
+ with :
48
48
toolchain : stable
49
- - uses : actions/checkout@v3
50
- - name : Run benchmark
51
- run : |
52
- cargo bench -F metal --no-fail-fast --bench "criterion_metal" \
53
- -- --output-format bencher | tee output.txt
54
- - name : Store benchmark result
55
- uses : benchmark-action/github-action-benchmark@v1
56
- with :
57
- tool : ' cargo'
58
- output-file-path : output.txt
59
- benchmark-data-dir-path : " ./bench"
60
- github-token : ${{ secrets.GITHUB_TOKEN }}
61
- # Push and deploy GitHub pages branch automatically
62
- auto-push : ${{ github.event_name != 'pull_request' }}
49
+ - uses : actions/checkout@v3
50
+ - name : install GCC/GMP
51
+ run : |
52
+ brew install gcc
53
+ brew install gmp
54
+ - name : Python3 build
55
+ uses : actions/setup-python@v4
56
+ with :
57
+ python-version : " 3.9"
58
+ cache : " pip"
59
+ - name : Install cairo-lang toolchain and dependencies
60
+ env :
61
+ CFLAGS : " -I/opt/homebrew/opt/gmp/include"
62
+ LDFLAGS : " -L/opt/homebrew/opt/gmp/lib"
63
+ run : pip install -r provers/cairo/requirements.txt
64
+ - name : Run benchmark
65
+ run : |
66
+ cargo bench -F metal --no-fail-fast --bench "criterion_metal" \
67
+ -- --output-format bencher | tee output.txt
68
+ - name : Store benchmark result
69
+ uses : benchmark-action/github-action-benchmark@v1
70
+ with :
71
+ tool : " cargo"
72
+ output-file-path : output.txt
73
+ benchmark-data-dir-path : " ./bench"
74
+ github-token : ${{ secrets.GITHUB_TOKEN }}
75
+ # Push and deploy GitHub pages branch automatically
76
+ auto-push : ${{ github.event_name != 'pull_request' }}
0 commit comments