File tree 3 files changed +91
-95
lines changed
3 files changed +91
-95
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,13 @@ jobs:
15
15
name : Build
16
16
steps :
17
17
- uses : actions/checkout@v3
18
-
18
+
19
19
- uses : Swatinem/rust-cache@v2
20
- with :
20
+ with :
21
21
shared-key : ci-build
22
-
23
- - name : Check that lockfile is up to date
24
- run : cargo update # --locked
22
+
25
23
- name : Check code builds without warnings
26
- run : cargo check --verbose --workspace
24
+ run : cargo clippy --locked --verbose --workspace
27
25
28
26
lint :
29
27
runs-on : ubuntu-latest
33
31
steps :
34
32
- uses : actions/checkout@v3
35
33
- uses : Swatinem/rust-cache@v2
36
- with :
34
+ with :
37
35
shared-key : ci-build
38
36
save-if : false
39
37
- name : Run clippy
@@ -49,20 +47,19 @@ jobs:
49
47
steps :
50
48
- uses : actions/checkout@v3
51
49
- uses : Swatinem/rust-cache@v2
52
- with :
50
+ with :
53
51
shared-key : ci-build
54
52
save-if : false
55
53
- name : Run Cargo tests
56
54
run : cargo test --verbose
57
-
58
-
55
+
59
56
docker_publish :
60
57
runs-on : ubuntu-latest
61
58
name : Publish built container
62
59
needs :
63
60
- lint
64
61
- test
65
-
62
+
66
63
if : success() && github.ref_name == 'main' && github.event_name == 'push'
67
64
steps :
68
65
- uses : actions/checkout@v3
72
69
filters : |
73
70
server:
74
71
- 'dcspkg_server/**'
75
-
72
+
76
73
- name : Build and publish a Docker image for dcspkg server
77
74
if : steps.has_server_changed.outputs.server == 'true'
78
75
uses : macbre/push-to-ghcr@v12
90
87
steps :
91
88
- uses : actions/checkout@v3
92
89
- uses : Swatinem/rust-cache@v2
93
- with :
90
+ with :
94
91
shared-key : ci-build
95
92
save-if : false
96
93
- uses : katyo/publish-crates@v1
You can’t perform that action at this time.
0 commit comments