[CI] Install Rust toolchain in CI
@@ -47,6 +47,13 @@ jobs:
python3 scripts/build_os_toolchain.py
echo "Toolchain built successfully"
+ - name: Build Rust toolchain
+ shell: bash
+ run: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
+ rustup toolchain install nightly --allow-downgrade --profile minimal --component clippy --component rustfmt
+ python3 scripts/build_rust_toolchain.py --rebuild_libc
+
- name: Build OS image
shell: bash
run: |
