-
-
Notifications
You must be signed in to change notification settings - Fork 8
68 lines (66 loc) · 1.43 KB
/
ci.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
57
58
59
60
61
62
63
64
65
66
67
68
name: Test and Validate
on: [pull_request, workflow_dispatch]
jobs:
test:
name: Test Debug Mode
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cargo test
run: |
cargo test
test-release:
name: Test Release Mode
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cargo test
run: |
cargo test --release
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Format check
run: |
cargo fmt --check
clippy:
name: Clippy Debug Mode
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run clippy
run: |
cargo clippy -- -D warnings
clippy_release:
name: Clippy Release Mode
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run clippy
run: |
cargo clippy --release -- -D warnings
build:
name: Build Check Debug Mode
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build check
run: |
cargo build
build-release:
name: Build Check Release Mode
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build check
run: |
cargo build --release