@@ -12,18 +12,18 @@ jobs:
12
12
matrix :
13
13
include :
14
14
# native stable
15
- - name : ' stable linux'
16
- os : ' ubuntu-latest'
17
- target : ' x86_64-unknown-linux-gnu'
18
- rust_version : ' stable'
19
- - name : ' stable mac'
20
- os : ' macos-latest'
21
- target : ' x86_64-apple-darwin'
22
- rust_version : ' stable'
23
- - name : ' stable windows'
24
- os : ' windows-latest'
25
- target : ' x86_64-pc-windows-msvc'
26
- rust_version : ' stable'
15
+ - name : " stable linux"
16
+ os : " ubuntu-latest"
17
+ target : " x86_64-unknown-linux-gnu"
18
+ rust_version : " stable"
19
+ - name : " stable mac"
20
+ os : " macos-latest"
21
+ target : " x86_64-apple-darwin"
22
+ rust_version : " stable"
23
+ - name : " stable windows"
24
+ os : " windows-latest"
25
+ target : " x86_64-pc-windows-msvc"
26
+ rust_version : " stable"
27
27
fail-fast : false
28
28
runs-on : ${{ matrix.os }}
29
29
name : ${{ matrix.name }}
32
32
- name : checkout repo
33
33
uses : actions/checkout@v2
34
34
35
- - name : load cache
36
- uses : actions/cache@v2
37
- with :
38
- path : |
39
- ~/.cargo/registry
40
- ~/.cargo/git
41
- target
42
- key : ${{ matrix.os }}-${{ matrix.target }}-${{ matrix.rust_version }}-cargo-${{ hashFiles('**/Cargo.lock') }}
43
- restore-keys : |
44
- ${{ matrix.os }}-${{ matrix.target }}-${{ matrix.rust_version }}-cargo-
35
+ - uses : Swatinem/rust-cache@v2
45
36
46
37
- name : install rust
47
38
uses : actions-rs/toolchain@v1
@@ -51,19 +42,19 @@ jobs:
51
42
profile : minimal
52
43
components : clippy
53
44
default : true
54
-
45
+
55
46
- name : check
56
47
uses : actions-rs/cargo@v1
57
48
with :
58
49
command : clippy
59
- args : --target ${{ matrix.target }} -- -D warnings
60
-
50
+ args : --target ${{ matrix.target }} -- -D warnings
51
+
61
52
- name : build
62
53
uses : actions-rs/cargo@v1
63
54
with :
64
55
command : build
65
56
args : --target ${{ matrix.target }}
66
-
57
+
67
58
- name : doc
68
59
uses : actions-rs/cargo@v1
69
60
env :
107
98
108
99
publish :
109
100
runs-on : ubuntu-latest
110
-
111
- needs : [' build', ' cargo-fmt', ' cargo-deny' ]
101
+
102
+ needs : [" build", " cargo-fmt", " cargo-deny" ]
112
103
if : ${{ startsWith(github.ref, 'refs/tags/v') }}
113
104
114
105
steps :
@@ -123,7 +114,7 @@ jobs:
123
114
toolchain : stable
124
115
profile : minimal
125
116
default : true
126
-
117
+
127
118
- name : install cargo-release
128
119
run : |
129
120
curl -LsSf https://github.com/crate-ci/cargo-release/releases/download/v0.21.0/cargo-release-v0.21.0-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
@@ -136,7 +127,7 @@ jobs:
136
127
137
128
cargo login ${{ secrets.CRATES_TOKEN }}
138
129
cargo release --no-confirm --execute $( echo '${{ github.ref }}' | sed 's?refs/tags/v??' )
139
-
130
+
140
131
- name : generate release notes
141
132
id : notes
142
133
run : |
0 commit comments