Skip to content

Commit 1d18b96

Browse files
committed
merge to one job
1 parent 90cec80 commit 1d18b96

File tree

1 file changed

+7
-59
lines changed

1 file changed

+7
-59
lines changed

.github/workflows/ci.yaml

+7-59
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ env:
1111
TOOLCHAIN: stable
1212

1313
jobs:
14-
init-env:
15-
name: Initialize Environment
16-
timeout-minutes: 10
14+
ci:
15+
name: CI
16+
timeout-minutes: 15
1717
strategy:
1818
matrix:
1919
os:
@@ -33,66 +33,14 @@ jobs:
3333
- name: Cache
3434
uses: Swatinem/rust-cache@v2
3535

36-
format:
37-
name: Format
38-
timeout-minutes: 10
39-
strategy:
40-
matrix:
41-
os:
42-
- ubuntu-latest
43-
- macos-latest
44-
- windows-latest
45-
runs-on: ${{matrix.os}}
46-
needs: init-env
47-
48-
steps:
49-
- name: Run Format
36+
- name: Format
5037
run: cargo fmt --all
5138

52-
lint:
53-
name: Lint
54-
timeout-minutes: 10
55-
strategy:
56-
matrix:
57-
os:
58-
- ubuntu-latest
59-
- macos-latest
60-
- windows-latest
61-
runs-on: ${{matrix.os}}
62-
needs: init-env
63-
64-
steps:
65-
- name: Run Lint
39+
- name: Lint
6640
run: cargo clippy --all-targets --all-features
6741

68-
test:
69-
name: Test
70-
timeout-minutes: 10
71-
strategy:
72-
matrix:
73-
os:
74-
- ubuntu-latest
75-
- macos-latest
76-
- windows-latest
77-
runs-on: ${{matrix.os}}
78-
needs: init-env
79-
80-
steps:
81-
- name: Run Tests
42+
- name: Tests
8243
run: cargo test --verbose
8344

84-
build:
85-
name: Build
86-
timeout-minutes: 10
87-
strategy:
88-
matrix:
89-
os:
90-
- ubuntu-latest
91-
- macos-latest
92-
- windows-latest
93-
runs-on: ${{matrix.os}}
94-
needs: init-env
95-
96-
steps:
97-
- name: Run Build
45+
- name: Build
9846
run: cargo build --release --verbose

0 commit comments

Comments
 (0)