-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (52 loc) · 1.33 KB
/
ci.yaml
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
name: CI Workflow
on: [ push ]
jobs:
format:
runs-on: self-hosted
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Check format
run: make check-format
build:
runs-on: self-hosted
needs: [ format ]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Make
run: make -j2 clean all build/fperf_test
- name: Upload fperf executable
uses: actions/upload-artifact@v3
with:
name: fperf
path: build/fperf
- name: Upload unit test executable
uses: actions/upload-artifact@v3
with:
name: fperf_test
path: build/fperf_test
unit-test:
runs-on: self-hosted
needs: [ build ]
steps:
- name: Download test artifact
uses: actions/download-artifact@v3
with:
name: fperf_test
- name: Making test artifact executable
run: chmod +x fperf_test
- name: Run tests
run: ./fperf_test
e2e-test:
runs-on: self-hosted
needs: [ build, unit-test ]
steps:
- name: Download fperf artifact
uses: actions/download-artifact@v3
with:
name: fperf
- name: Making fperf artifact executable
run: chmod +x fperf
- name: Run the fperf
run: ./fperf rr