1111 CARGO_TARGET_DIR : ' ${{ github.workspace }}/target'
1212 NO_FMT_TEST : 1
1313
14+ defaults :
15+ run :
16+ shell : bash
17+
1418jobs :
1519 changelog :
1620 runs-on : ubuntu-latest
2024 with :
2125 github_token : " ${{ secrets.github_token }}"
2226 - name : Checkout
23- uses : actions/checkout@v2.0.0
27+ uses : actions/checkout@v2.3.3
2428 with :
2529 ref : ${{ github.ref }}
2630
@@ -81,14 +85,14 @@ jobs:
8185 if : matrix.host == 'i686-unknown-linux-gnu'
8286
8387 - name : rust-toolchain
84- uses : actions-rs/toolchain@v1.0.3
88+ uses : actions-rs/toolchain@v1.0.6
8589 with :
8690 toolchain : nightly
8791 target : ${{ matrix.host }}
8892 profile : minimal
8993
9094 - name : Checkout
91- uses : actions/checkout@v2.0.0
95+ uses : actions/checkout@v2.3.3
9296
9397 - name : Run cargo update
9498 run : cargo update
@@ -105,14 +109,13 @@ jobs:
105109 run : bash setup-toolchain.sh
106110 env :
107111 HOST_TOOLCHAIN : ${{ matrix.host }}
108- shell : bash
109112
110113 # Run
111114 - name : Set LD_LIBRARY_PATH (Linux)
112115 if : runner.os == 'Linux'
113116 run : |
114117 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
116119 - name : Link rustc dylib (MacOS)
117120 if : runner.os == 'macOS'
118121 run : |
@@ -122,41 +125,33 @@ jobs:
122125 - name : Set PATH (Windows)
123126 if : runner.os == 'Windows'
124127 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
128130
129131 - name : Build
130132 run : cargo build --features deny-warnings
131- shell : bash
132133
133134 - name : Test
134135 run : cargo test --features deny-warnings
135- shell : bash
136136
137137 - name : Test clippy_lints
138138 run : cargo test --features deny-warnings
139- shell : bash
140139 working-directory : clippy_lints
141140
142141 - name : Test rustc_tools_util
143142 run : cargo test --features deny-warnings
144- shell : bash
145143 working-directory : rustc_tools_util
146144
147145 - name : Test clippy_dev
148146 run : cargo test --features deny-warnings
149- shell : bash
150147 working-directory : clippy_dev
151148
152149 - name : Test cargo-clippy
153150 run : ../target/debug/cargo-clippy
154- shell : bash
155151 working-directory : clippy_workspace_tests
156152
157153 - name : Test clippy-driver
158154 run : bash .github/driver.sh
159- shell : bash
160155 env :
161156 OS : ${{ runner.os }}
162157
@@ -165,7 +160,7 @@ jobs:
165160 run : |
166161 cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
167162 cargo cache
168- shell : bash
163+
169164 integration_build :
170165 needs : changelog
171166 runs-on : ubuntu-latest
@@ -177,14 +172,14 @@ jobs:
177172 github_token : " ${{ secrets.github_token }}"
178173
179174 - name : rust-toolchain
180- uses : actions-rs/toolchain@v1.0.3
175+ uses : actions-rs/toolchain@v1.0.6
181176 with :
182177 toolchain : nightly
183178 target : x86_64-unknown-linux-gnu
184179 profile : minimal
185180
186181 - name : Checkout
187- uses : actions/checkout@v2.0.0
182+ uses : actions/checkout@v2.3.3
188183
189184 - name : Run cargo update
190185 run : cargo update
@@ -258,14 +253,14 @@ jobs:
258253 github_token : " ${{ secrets.github_token }}"
259254
260255 - name : rust-toolchain
261- uses : actions-rs/toolchain@v1.0.3
256+ uses : actions-rs/toolchain@v1.0.6
262257 with :
263258 toolchain : nightly
264259 target : x86_64-unknown-linux-gnu
265260 profile : minimal
266261
267262 - name : Checkout
268- uses : actions/checkout@v2.0.0
263+ uses : actions/checkout@v2.3.3
269264
270265 - name : Run cargo update
271266 run : cargo update
0 commit comments