Skip to content

Commit 115e633

Browse files
committed
CI: Remove custom rustup installation
This is no longer necessary
1 parent e10f621 commit 115e633

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -118,26 +118,8 @@ jobs:
118118
steps:
119119
- uses: actions/checkout@v2
120120

121-
- name: Cleanup pre-installed Rust toolchains
122-
# The pre-installed toolchain is under root permission, and this would
123-
# make tarball fail to extract. Here we remove the symlink and install
124-
# our own Rust toolchain if necessary.
125-
run: |
126-
which rustup
127-
which cargo
128-
if [[ -L "$HOME/.cargo" && -L "$HOME/.rustup" ]]; then
129-
rm -v "$HOME/.rustup"
130-
rm -v "$HOME/.cargo"
131-
fi
132-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
133-
134121
- name: Install ${{ matrix.rust }} Rust
135122
run: |
136-
if [[ ! -d "$HOME/.cargo" || ! -d "$HOME/.rustup" ]]; then
137-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
138-
sh rustup-init.sh -y --default-toolchain none
139-
fi
140-
rustup set profile minimal
141123
rustup update ${{ matrix.rust }}
142124
rustup default ${{ matrix.rust }}
143125

0 commit comments

Comments
 (0)