CI: rfl: switch to a stage 2 build

Apparently tools like `rustfmt` require it in order to find the right
`librustc_driver.so` without extra tweaks.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
Miguel Ojeda 2024-08-28 01:53:47 +02:00
parent 992dd0bbe3
commit d783b1dabd

View File

@ -5,7 +5,7 @@ set -euo pipefail
LINUX_VERSION=4c7864e81d8bbd51036dacf92fb0a400e13aaeee
# Build rustc, rustdoc and cargo
../x.py build --stage 1 library rustdoc
../x.py build --stage 2 library rustdoc
../x.py build --stage 0 cargo
# Install rustup so that we can use the built toolchain easily, and also
@ -16,7 +16,7 @@ sh rustup.sh -y --default-toolchain none
source /cargo/env
BUILD_DIR=$(realpath ./build)
rustup toolchain link local "${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage1
rustup toolchain link local "${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage2
rustup default local
mkdir -p rfl