File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and test client
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ paths :
7+ - " client/"
8+ - " common/"
9+ pull_request :
10+ branches : [ "main" ]
11+ paths :
12+ - " client/"
13+ - " common/"
14+
15+ env :
16+ CARGO_TERM_COLOR : always
17+ DEBIAN_FRONTEND : noninteractive
18+
19+ defaults :
20+ run :
21+ working_directory : client
22+
23+ jobs :
24+ build-client :
25+ runs-on : ubuntu-latest
26+
27+ steps :
28+ - uses : actions/checkout@v3
29+
30+ - uses : dtolnay/rust-toolchain@stable
31+ with :
32+ components : clippy, rustfmt
33+
34+ - uses : Swatinem/rust-cache@v2
35+
36+ - name : Install dependencies
37+ run : |
38+ sudo apt-get update
39+ sudo apt-get install -y protobuf-compiler libprotobuf-dev
40+
41+ - name : Build
42+ run : |
43+ cargo build --verbose
44+
45+ - name : Test
46+ run : |
47+ cargo test --verbose
48+
49+ - name : Format
50+ run : |
51+ cargo fmt --check
Original file line number Diff line number Diff line change 1+ name : Build and test common
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ paths :
7+ - " common/"
8+ pull_request :
9+ branches : [ "main" ]
10+ paths :
11+ - " common/"
12+
13+ env :
14+ CARGO_TERM_COLOR : always
15+ DEBIAN_FRONTEND : noninteractive
16+
17+ defaults :
18+ run :
19+ working_directory : common
20+
21+ jobs :
22+ build-common :
23+ runs-on : ubuntu-latest
24+
25+ steps :
26+ - uses : actions/checkout@v3
27+
28+ - uses : dtolnay/rust-toolchain@stable
29+ with :
30+ components : clippy, rustfmt
31+
32+ - uses : Swatinem/rust-cache@v2
33+
34+ - name : Build
35+ run : |
36+ cargo build --verbose
37+
38+ - name : Test
39+ run : |
40+ cargo test --verbose
41+
42+ - name : Format
43+ run : |
44+ cargo fmt --check
Original file line number Diff line number Diff line change 1+ name : Build and test daemon
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ paths :
7+ - " daemon/"
8+ - " common/"
9+ pull_request :
10+ branches : [ "main" ]
11+ paths :
12+ - " daemon/"
13+ - " common/"
14+
15+ env :
16+ CARGO_TERM_COLOR : always
17+ DEBIAN_FRONTEND : noninteractive
18+
19+ defaults :
20+ run :
21+ working_directory : daemon
22+
23+ jobs :
24+ build-daemon :
25+ runs-on : ubuntu-latest
26+
27+ steps :
28+ - uses : actions/checkout@v3
29+
30+ - uses : dtolnay/rust-toolchain@stable
31+ with :
32+ components : clippy, rustfmt
33+
34+ - uses : Swatinem/rust-cache@v2
35+
36+ - name : Install dependencies
37+ run : |
38+ sudo apt-get update
39+ sudo apt-get install -y protobuf-compiler libprotobuf-dev
40+
41+ - name : Build
42+ run : |
43+ cargo build --verbose
44+
45+ - name : Test
46+ run : |
47+ cargo test --verbose
48+
49+ - name : Format
50+ run : |
51+ cargo fmt --check
Original file line number Diff line number Diff line change 1+ name : Build and test server
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ paths :
7+ - " server/"
8+ - " common/"
9+ pull_request :
10+ branches : [ "main" ]
11+ paths :
12+ - " server/"
13+ - " common"
14+
15+ env :
16+ CARGO_TERM_COLOR : always
17+ DEBIAN_FRONTEND : noninteractive
18+
19+ defaults :
20+ run :
21+ working_directory : server
22+
23+ jobs :
24+ build-server :
25+ runs-on : ubuntu-latest
26+
27+ steps :
28+ - uses : actions/checkout@v3
29+
30+ - uses : dtolnay/rust-toolchain@stable
31+ with :
32+ components : clippy, rustfmt
33+
34+ - uses : Swatinem/rust-cache@v2
35+
36+ - name : Build
37+ run : |
38+ cargo build --verbose
39+
40+ - name : Test
41+ run : |
42+ cargo test --verbose
43+
44+ - name : Format
45+ run : |
46+ cargo fmt --check
You can’t perform that action at this time.
0 commit comments