-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.7 KB
/
main.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
54
55
56
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: git submodule update --init
- name: install bazel
run: |
sudo apt-get -y install pkg-config zip g++ zlib1g-dev unzip python
wget https://github.com/bazelbuild/bazel/releases/download/0.29.1/bazel-0.29.1-installer-linux-x86_64.sh
chmod +x bazel-0.29.1-installer-linux-x86_64.sh
sudo ./bazel-0.29.1-installer-linux-x86_64.sh
- name: test
run: bazel run //:test
- name:
run: bazel run //:group_exp_cancles
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: git submodule update --init
- name: install packages for plot scripts
run: |
sudo apt-get install -y python3-pip
sudo pip3 install matplotlib numpy pandas
- name: build dpdk
run: ./build_dpdk.sh
working-directory: dpdk
- name: install bazel
run: |
sudo apt-get -y install pkg-config zip g++ zlib1g-dev unzip python
wget https://github.com/bazelbuild/bazel/releases/download/0.29.1/bazel-0.29.1-installer-linux-x86_64.sh
chmod +x bazel-0.29.1-installer-linux-x86_64.sh
sudo ./bazel-0.29.1-installer-linux-x86_64.sh
- name: bench
run: |
bazel build //:bench
./bazel-bin/bench --benchmark_out_format=csv --benchmark_out=bench.csv
mkdir -p benchmark_results
mv bench.csv benchmark_results
- name: plot
working-directory: benchmark_results
run: |
python3 ../scripts/plot.py --csv bench.csv
- uses: actions/upload-artifact@v1
with:
name: benchmark_results
path: benchmark_results