Skip to content

Commit 56ed292

Browse files
committed
CI: Remove custom rustup installation
This is no longer necessary
1 parent dcb0617 commit 56ed292

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
@@ -119,26 +119,8 @@ jobs:
119119
steps:
120120
- uses: actions/checkout@v2
121121

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

0 commit comments

Comments
 (0)