Skip to content

Commit 084d039

Browse files
Merge branch 'master' into in-code-documentation
2 parents 03514d9 + 04ed8ec commit 084d039

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/rust.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ jobs:
5353
with:
5454
go-version: '^1.16'
5555

56+
- name: Install dependencies
57+
if: ${{ env.ACT }}
58+
run: |
59+
go install github.com/bazelbuild/[email protected]
60+
5661
- name: Cache
5762
uses: actions/cache@v2
5863
with:
@@ -92,6 +97,15 @@ jobs:
9297
steps:
9398
- uses: actions/checkout@v2
9499

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+
95109
- name: Update Rust
96110
run: |
97111
rustup toolchain install stable --component clippy --component rustfmt
@@ -131,6 +145,15 @@ jobs:
131145
steps:
132146
- uses: actions/checkout@v2
133147

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+
134157
- name: Update Rust
135158
run: |
136159
rustup toolchain install nightly --component clippy --component rustfmt
@@ -168,6 +191,17 @@ jobs:
168191
steps:
169192
- uses: actions/checkout@v2
170193

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+
171205
- name: Run cargo outdated
172206
run: cargo outdated --root-deps-only --exit-code 1
173207

@@ -177,6 +211,17 @@ jobs:
177211
steps:
178212
- uses: actions/checkout@v2
179213

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+
180225
- name: Run cargo audit
181226
run: |
182227
cp -p bazel/cargo/Cargo.Bazel.lock Cargo.lock
@@ -204,6 +249,15 @@ jobs:
204249
steps:
205250
- uses: actions/checkout@v2
206251

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+
207261
- name: Update Rust
208262
run: |
209263
rustup toolchain install stable --component clippy --component rustfmt
@@ -258,6 +312,15 @@ jobs:
258312
steps:
259313
- uses: actions/checkout@v2
260314

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+
261324
- name: Update Rust
262325
run: |
263326
rustup toolchain install nightly --component clippy --component rustfmt

0 commit comments

Comments
 (0)