Skip to content

Commit 89c12e0

Browse files
authored
Rollup merge of rust-lang#137947 - Kobzol:fix-rfl, r=marcoieni
Do not install rustup on Rust for Linux job Trying to fix the RfL job after the recent rustup update. r? `@ghost` try-job: x86_64-rust-for-linux
2 parents 32be95c + 4f4cbff commit 89c12e0

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

src/ci/docker/scripts/rfl-build.sh

+8-10
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@ LINUX_VERSION=v6.14-rc3
88
../x.py build --stage 2 library rustdoc clippy rustfmt
99
../x.py build --stage 0 cargo
1010

11-
# Install rustup so that we can use the built toolchain easily, and also
12-
# install bindgen in an easy way.
13-
curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
14-
sh rustup.sh -y --default-toolchain none
11+
BUILD_DIR=$(realpath ./build/x86_64-unknown-linux-gnu)
1512

16-
source /cargo/env
17-
18-
BUILD_DIR=$(realpath ./build)
19-
rustup toolchain link local "${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage2
20-
rustup default local
13+
# Provide path to rustc, rustdoc, clippy-driver and rustfmt to RfL
14+
export PATH=${PATH}:${BUILD_DIR}/stage2/bin
2115

2216
mkdir -p rfl
2317
cd rfl
@@ -33,10 +27,14 @@ git -C linux fetch --depth 1 origin ${LINUX_VERSION}
3327
git -C linux checkout FETCH_HEAD
3428

3529
# Install bindgen
36-
"${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage0/bin/cargo install \
30+
"${BUILD_DIR}"/stage0/bin/cargo install \
3731
--version $(linux/scripts/min-tool-version.sh bindgen) \
32+
--root ${BUILD_DIR}/bindgen \
3833
bindgen-cli
3934

35+
# Provide path to bindgen to RfL
36+
export PATH=${PATH}:${BUILD_DIR}/bindgen/bin
37+
4038
# Configure Rust for Linux
4139
cat <<EOF > linux/kernel/configs/rfl-for-rust-ci.config
4240
# CONFIG_WERROR is not set

src/ci/github-actions/jobs.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,8 @@ auto:
271271

272272
# Tests integration with Rust for Linux.
273273
# Builds stage 1 compiler and tries to compile a few RfL examples with it.
274-
# FIXME: fix rustup 1.28 issue
275-
# - name: x86_64-rust-for-linux
276-
# <<: *job-linux-4c
274+
- name: x86_64-rust-for-linux
275+
<<: *job-linux-4c
277276

278277
- name: x86_64-gnu
279278
<<: *job-linux-4c

0 commit comments

Comments
 (0)