fix: Use pre-installed Rust tools instead of downloading

- Remove Install Rust step (pre-installed in /root/.cargo/bin)
- Remove Install sccache step (pre-installed)
- Use pre-installed tools path instead
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-03-31 12:55:21 -03:00
parent 071f66d96e
commit 3da26f497c

View file

@ -61,13 +61,12 @@ jobs:
sudo apt-get update -qq
sudo apt-get install -y libpq-dev libssl-dev liblzma-dev pkg-config
- name: Install Rust
- name: Setup PATH for pre-installed tools
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
echo "/usr/local/bin" >> $GITHUB_PATH
- name: Install sccache
run: |
- name: Build BotServer
if [ ! -f $HOME/.cargo/bin/sccache ]; then
wget -q https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz
tar xzf sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz