11
11
CARGO_TARGET_DIR : ' ${{ github.workspace }}/target'
12
12
NO_FMT_TEST : 1
13
13
14
+ defaults :
15
+ run :
16
+ shell : bash
17
+
14
18
jobs :
15
19
changelog :
16
20
runs-on : ubuntu-latest
20
24
with :
21
25
github_token : " ${{ secrets.github_token }}"
22
26
- name : Checkout
23
- uses : actions/checkout@v2.0.0
27
+ uses : actions/checkout@v2.3.3
24
28
with :
25
29
ref : ${{ github.ref }}
26
30
@@ -81,14 +85,14 @@ jobs:
81
85
if : matrix.host == 'i686-unknown-linux-gnu'
82
86
83
87
- name : rust-toolchain
84
- uses :
actions-rs/[email protected] .3
88
+ uses :
actions-rs/[email protected] .6
85
89
with :
86
90
toolchain : nightly
87
91
target : ${{ matrix.host }}
88
92
profile : minimal
89
93
90
94
- name : Checkout
91
- uses : actions/checkout@v2.0.0
95
+ uses : actions/checkout@v2.3.3
92
96
93
97
- name : Run cargo update
94
98
run : cargo update
@@ -105,14 +109,13 @@ jobs:
105
109
run : bash setup-toolchain.sh
106
110
env :
107
111
HOST_TOOLCHAIN : ${{ matrix.host }}
108
- shell : bash
109
112
110
113
# Run
111
114
- name : Set LD_LIBRARY_PATH (Linux)
112
115
if : runner.os == 'Linux'
113
116
run : |
114
117
SYSROOT=$(rustc --print sysroot)
115
- echo "::set-env name= LD_LIBRARY_PATH:: ${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}"
118
+ echo "LD_LIBRARY_PATH= ${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
116
119
- name : Link rustc dylib (MacOS)
117
120
if : runner.os == 'macOS'
118
121
run : |
@@ -122,41 +125,33 @@ jobs:
122
125
- name : Set PATH (Windows)
123
126
if : runner.os == 'Windows'
124
127
run : |
125
- $sysroot = rustc --print sysroot
126
- $env:PATH += ';' + $sysroot + '\bin'
127
- echo "::set-env name=PATH::$env:PATH"
128
+ SYSROOT=$(rustc --print sysroot)
129
+ echo "$SYSROOT/bin" >> $GITHUB_PATH
128
130
129
131
- name : Build
130
132
run : cargo build --features deny-warnings
131
- shell : bash
132
133
133
134
- name : Test
134
135
run : cargo test --features deny-warnings
135
- shell : bash
136
136
137
137
- name : Test clippy_lints
138
138
run : cargo test --features deny-warnings
139
- shell : bash
140
139
working-directory : clippy_lints
141
140
142
141
- name : Test rustc_tools_util
143
142
run : cargo test --features deny-warnings
144
- shell : bash
145
143
working-directory : rustc_tools_util
146
144
147
145
- name : Test clippy_dev
148
146
run : cargo test --features deny-warnings
149
- shell : bash
150
147
working-directory : clippy_dev
151
148
152
149
- name : Test cargo-clippy
153
150
run : ../target/debug/cargo-clippy
154
- shell : bash
155
151
working-directory : clippy_workspace_tests
156
152
157
153
- name : Test clippy-driver
158
154
run : bash .github/driver.sh
159
- shell : bash
160
155
env :
161
156
OS : ${{ runner.os }}
162
157
@@ -165,7 +160,7 @@ jobs:
165
160
run : |
166
161
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
167
162
cargo cache
168
- shell : bash
163
+
169
164
integration_build :
170
165
needs : changelog
171
166
runs-on : ubuntu-latest
@@ -177,14 +172,14 @@ jobs:
177
172
github_token : " ${{ secrets.github_token }}"
178
173
179
174
- name : rust-toolchain
180
- uses :
actions-rs/[email protected] .3
175
+ uses :
actions-rs/[email protected] .6
181
176
with :
182
177
toolchain : nightly
183
178
target : x86_64-unknown-linux-gnu
184
179
profile : minimal
185
180
186
181
- name : Checkout
187
- uses : actions/checkout@v2.0.0
182
+ uses : actions/checkout@v2.3.3
188
183
189
184
- name : Run cargo update
190
185
run : cargo update
@@ -258,14 +253,14 @@ jobs:
258
253
github_token : " ${{ secrets.github_token }}"
259
254
260
255
- name : rust-toolchain
261
- uses :
actions-rs/[email protected] .3
256
+ uses :
actions-rs/[email protected] .6
262
257
with :
263
258
toolchain : nightly
264
259
target : x86_64-unknown-linux-gnu
265
260
profile : minimal
266
261
267
262
- name : Checkout
268
- uses : actions/checkout@v2.0.0
263
+ uses : actions/checkout@v2.3.3
269
264
270
265
- name : Run cargo update
271
266
run : cargo update
0 commit comments