-
Notifications
You must be signed in to change notification settings - Fork 60
53 lines (52 loc) · 1.78 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
51
52
53
name: Run Benchmark
on:
pull_request:
branches:
- 'master'
- 'develop'
jobs:
RunBenchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'submodule_benchmark'
submodules: 'true'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install solc-select
run: python -m pip install solc-select
- name: Install Slither
run: python -m pip install slither-analyzer
- name: Install Setuptools
run: python -m pip install setuptools
- name: Install Slitherin
run: python setup.py develop
- name: Set version via solc
run: |
solc-select install 0.8.19
solc-select use 0.8.19
- name: Install node dependencies
run: npm ci
- name: Install benchmark requirements
run: |
cd slitherin-benchmark/
python -m pip install -r requirements.txt
- name: Run Benchmark
run: |
cd slitherin-benchmark/
python3 runner.py -i contracts/mainnet -o mainnet.csv --limit 5000
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: benchmark
path: slitherin-benchmark/mainnet.csv