File tree 2 files changed +73
-2
lines changed
2 files changed +73
-2
lines changed Original file line number Diff line number Diff line change 37
37
- name : Install cargo-make
38
38
uses : actions-rs/cargo@v1
39
39
with :
40
- command : build
41
- args : --release
40
+ command : install
41
+ args : --force cargo-make
42
42
43
43
- name : Build release binaries
44
44
uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change
1
+ [env ]
2
+ CFG_RELEASE = { value = " ${CARGO_MAKE_RUST_VERSION}" , condition = { env_not_set = [" CFG_RELEASE" ] } }
3
+ CFG_RELEASE_CHANNEL = { value = " ${CARGO_MAKE_RUST_CHANNEL}" , condition = { env_not_set = [" CFG_RELEASE_CHANNEL" ] } }
4
+
5
+ [tasks .build-bin ]
6
+ command = " cargo"
7
+ args = [
8
+ " build" ,
9
+ " --bin" ,
10
+ " rustfmt" ,
11
+ " --bin" ,
12
+ " cargo-fmt" ,
13
+ ]
14
+
15
+ [tasks .build-bins ]
16
+ command = " cargo"
17
+ args = [
18
+ " build" ,
19
+ " --bins" ,
20
+ ]
21
+
22
+ [tasks .install ]
23
+ command = " cargo"
24
+ args = [
25
+ " install" ,
26
+ " --path" ,
27
+ " ." ,
28
+ " --force" ,
29
+ " --locked" , # Respect Cargo.lock
30
+ ]
31
+
32
+ [tasks .release ]
33
+ command = " cargo"
34
+ args = [
35
+ " build" ,
36
+ " --release" ,
37
+ ]
38
+
39
+ [tasks .test ]
40
+ command = " cargo"
41
+ args = [
42
+ " test" ,
43
+ ]
44
+
45
+ [tasks .test-all ]
46
+ dependencies = [" build-bin" ]
47
+ run_task = { name = [" test" , " test-ignored" ] }
48
+
49
+ [tasks .test-ignored ]
50
+ command = " cargo"
51
+ args = [
52
+ " test" ,
53
+ " --" ,
54
+ " --ignored" ,
55
+ ]
56
+
57
+ [tasks .b ]
58
+ alias = " build"
59
+
60
+ [tasks .bb ]
61
+ alias = " build-bin"
62
+
63
+ [tasks .bins ]
64
+ alias = " build-bins"
65
+
66
+ [tasks .c ]
67
+ alias = " check"
68
+
69
+ [tasks .t ]
70
+ alias = " test"
71
+
You can’t perform that action at this time.
0 commit comments