Skip to content

Commit b786db4

Browse files
committed
CI: Install Rust before performing rustc -V call
1 parent 358d6cb commit b786db4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ jobs:
8787
restore-keys: |
8888
${{ runner.os }}-cargo-
8989
90+
- name: Install Rust
91+
run: |
92+
rustup set profile minimal
93+
# Pin to older version until a clippy regression is fixed
94+
rustup update 1.53.0
95+
rustup default 1.53.0
96+
9097
- id: rustc
9198
run:
9299
echo "::set-output name=version::$(rustc -V)"
@@ -99,13 +106,6 @@ jobs:
99106
restore-keys: |
100107
v2-${{ runner.os }}-cargo-clippy-${{ steps.rustc.outputs.version }}-
101108
102-
- name: Install Rust
103-
run: |
104-
rustup set profile minimal
105-
# Pin to older version until a clippy regression is fixed
106-
rustup update 1.53.0
107-
rustup default 1.53.0
108-
109109
- run: rustup component add rustfmt
110110
- run: rustup component add clippy
111111

0 commit comments

Comments
 (0)