@@ -114,6 +114,12 @@ jobs:
114114
115115 git clone --depth 1 https://github.com/rust-lang/rustc_codegen_gcc
116116
117+ # Since we use rustc_codegen_gcc from the master branch of the repo, but don't use y.sh in make to build using rustc_codegen_gcc,
118+ # we need to override the rust version.
119+ rust_version=$(grep channel rustc_codegen_gcc/rust-toolchain | cut -f3 -d' ' | sed 's/"//g')
120+ rustup override set $rust_version
121+ rustup component add clippy rustfmt
122+
117123 echo "MAKE_KRUSTFLAGS=KRUSTFLAGS=-Zcodegen-backend=$(pwd)/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so" >> $GITHUB_ENV
118124
119125
@@ -225,30 +231,9 @@ jobs:
225231 grep '] rust_print: Info message (level 6) with args$' qemu-stdout
226232 grep '] rust_print: A line that is continued with args$' qemu-stdout
227233
228- - run : grep '] ok 1 rust_doctests_kernel$' qemu-stdout
234+ - run : grep '] ok 2 rust_doctests_kernel$' qemu-stdout
229235
230- - run : |
231- grep -i '\bpanic\b' qemu-stdout && exit 1
232- grep -i '\boops\b' qemu-stdout && exit 1
233- grep -i '\btaint\b' qemu-stdout && exit 1
234- grep -i '\bfault\b' qemu-stdout && exit 1
235- grep -i '\btrace\b' qemu-stdout && exit 1
236- grep -i '\bcorrupted\b' qemu-stdout && exit 1
237-
238- grep -i '\bbug\b' qemu-stdout |
239- grep -Fv '" and report a bug' &&
240- exit 1
241-
242- grep -i '\berror\b' qemu-stdout |
243- grep -Fv 'message (level 3)' |
244- grep -Fv 'regulatory.db' &&
245- exit 1
246-
247- grep -i '\bwarning\b' qemu-stdout |
248- grep -Fv 'message (level 4)' &&
249- exit 1
250-
251- exit 0
236+ - run : python ci/check_panics.py qemu-stdout
252237
253238 # Re-build with Clippy.
254239 - run : make -C linux ${{ env.MAKE_ARCH }} ${{ env.MAKE_CROSS_COMPILE }} ${{ env.MAKE_TOOLCHAIN }} ${{ env.MAKE_OUTPUT }} ${{ env.MAKE_KRUSTFLAGS }} ${{ env.JOBS }} CLIPPY=1
0 commit comments