Skip to content

Commit bb597fb

Browse files
authored
Optimize CI workflow by simplifying Rust installation
Removed redundant installation of 'rustc' and 'cargo' and updated the command to set the PATH for Rust.
1 parent 2f355d4 commit bb597fb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,8 @@ jobs:
230230
- name: Install Build Dependencies
231231
run: |
232232
sudo apt-get update
233-
sudo apt-get install -y git rustc cargo pkg-config libssl-dev build-essential python3-dev uuid-runtime genisoimage python3 ipmitool build-essential libgcrypt20 libgpg-error-dev libgpg-error0 libopenipmi0 ipmitool libpython3-dev libssl-dev libffi-dev python3-openssl python3-dev python3-setuptools libxml2-dev libxslt1-dev gcc python3-cffi libffi-dev
234-
curl -sSf https://sh.rustup.rs | sh -s -- -y
235-
. "$HOME/.cargo/env"
233+
sudo apt-get install -y git pkg-config libssl-dev build-essential python3-dev uuid-runtime genisoimage python3 ipmitool build-essential libgcrypt20 libgpg-error-dev libgpg-error0 libopenipmi0 ipmitool libpython3-dev libssl-dev libffi-dev python3-openssl python3-dev python3-setuptools libxml2-dev libxslt1-dev gcc python3-cffi libffi-dev
234+
curl -sSf https://sh.rustup.rs | sh -s -- -y && . "$HOME/.cargo/env" && export PATH="$HOME/.cargo/bin:$PATH"
236235
237236
- name: Setup IPMI Tool for CloudStack
238237
run: |

0 commit comments

Comments
 (0)