53
53
with:
54
54
go-version: '^1.16'
55
55
56
+ - name: Install dependencies
57
+ if: ${{ env.ACT }}
58
+ run: |
59
+ go install github.com/bazelbuild/
[email protected]
60
+
56
61
- name: Cache
57
62
uses: actions/cache@v2
58
63
with:
92
97
steps:
93
98
- uses: actions/checkout@v2
94
99
100
+ - name: Install dependencies
101
+ if: ${{ env.ACT }}
102
+ run: |
103
+ curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
104
+ chmod +x ./rustup-init
105
+ ./rustup-init -y
106
+ rm rustup-init
107
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
108
+
95
109
- name: Update Rust
96
110
run: |
97
111
rustup toolchain install stable --component clippy --component rustfmt
@@ -131,6 +145,15 @@ jobs:
131
145
steps:
132
146
- uses: actions/checkout@v2
133
147
148
+ - name: Install dependencies
149
+ if: ${{ env.ACT }}
150
+ run: |
151
+ curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
152
+ chmod +x ./rustup-init
153
+ ./rustup-init -y
154
+ rm rustup-init
155
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
156
+
134
157
- name: Update Rust
135
158
run: |
136
159
rustup toolchain install nightly --component clippy --component rustfmt
@@ -168,6 +191,17 @@ jobs:
168
191
steps:
169
192
- uses: actions/checkout@v2
170
193
194
+ - name: Install dependencies
195
+ if: ${{ env.ACT }}
196
+ run: |
197
+ curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
198
+ chmod +x ./rustup-init
199
+ ./rustup-init -y
200
+ rm rustup-init
201
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
202
+ export PATH=$PATH:$HOME/.cargo/bin
203
+ cargo install cargo-outdated
204
+
171
205
- name: Run cargo outdated
172
206
run: cargo outdated --root-deps-only --exit-code 1
173
207
@@ -177,6 +211,17 @@ jobs:
177
211
steps:
178
212
- uses: actions/checkout@v2
179
213
214
+ - name: Install dependencies
215
+ if: ${{ env.ACT }}
216
+ run: |
217
+ curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
218
+ chmod +x ./rustup-init
219
+ ./rustup-init -y
220
+ rm rustup-init
221
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
222
+ export PATH=$PATH:$HOME/.cargo/bin
223
+ cargo install cargo-audit
224
+
180
225
- name: Run cargo audit
181
226
run: |
182
227
cp -p bazel/cargo/Cargo.Bazel.lock Cargo.lock
@@ -204,6 +249,15 @@ jobs:
204
249
steps:
205
250
- uses: actions/checkout@v2
206
251
252
+ - name: Install dependencies
253
+ if: ${{ env.ACT }}
254
+ run: |
255
+ curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
256
+ chmod +x ./rustup-init
257
+ ./rustup-init -y
258
+ rm rustup-init
259
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
260
+
207
261
- name: Update Rust
208
262
run: |
209
263
rustup toolchain install stable --component clippy --component rustfmt
@@ -258,6 +312,15 @@ jobs:
258
312
steps:
259
313
- uses: actions/checkout@v2
260
314
315
+ - name: Install dependencies
316
+ if: ${{ env.ACT }}
317
+ run: |
318
+ curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
319
+ chmod +x ./rustup-init
320
+ ./rustup-init -y
321
+ rm rustup-init
322
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
323
+
261
324
- name: Update Rust
262
325
run: |
263
326
rustup toolchain install nightly --component clippy --component rustfmt
0 commit comments