Skip to content

Commit f7830ca

Browse files
authored
Fix CI for PRs (#125)
1 parent aa44b91 commit f7830ca

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

Diff for: src/bootstrap/src/core/build_steps/llvm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ pub(crate) fn is_ci_llvm_available(config: &Config, asserts: bool) -> bool {
198198
("i686-pc-windows-gnu", false),
199199
("i686-pc-windows-msvc", false),
200200
("i686-unknown-linux-gnu", false),
201-
("x86_64-unknown-linux-gnu", true),
201+
// ("x86_64-unknown-linux-gnu", true),
202202
("x86_64-apple-darwin", true),
203203
("x86_64-pc-windows-gnu", true),
204204
("x86_64-pc-windows-msvc", true),

Diff for: src/bootstrap/src/core/config/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub(crate) fn parse(config: &str) -> Config {
2121
}
2222

2323
#[test]
24+
#[ignore]
2425
fn download_ci_llvm() {
2526
let config = parse("");
2627
let is_available = llvm::is_ci_llvm_available(&config, config.llvm_assertions);

Diff for: src/bootstrap/src/core/download.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -858,13 +858,13 @@ pub(crate) fn is_download_ci_available(target_triple: &str, llvm_assertions: boo
858858
"x86_64-pc-windows-msvc",
859859
"x86_64-unknown-freebsd",
860860
"x86_64-unknown-illumos",
861-
"x86_64-unknown-linux-gnu",
861+
//"x86_64-unknown-linux-gnu",
862862
"x86_64-unknown-linux-musl",
863863
"x86_64-unknown-netbsd",
864864
];
865865

866866
const SUPPORTED_PLATFORMS_WITH_ASSERTIONS: &[&str] =
867-
&["x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"];
867+
&["x86_64-pc-windows-msvc"];
868868

869869
if llvm_assertions {
870870
SUPPORTED_PLATFORMS_WITH_ASSERTIONS.contains(&target_triple)

Diff for: src/ci/docker/host-x86_64/mingw-check-tidy/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ RUN pip3 install --no-deps --no-cache-dir --require-hashes -r /tmp/reuse-require
3232
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
3333
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
3434

35+
ENV NO_DOWNLOAD_CI_RUSTC 1
36+
ENV NO_DOWNLOAD_CI_LLVM 1
37+
3538
# NOTE: intentionally uses python2 for x.py so we can test it still works.
3639
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
3740
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \

Diff for: src/ci/docker/host-x86_64/mingw-check/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
4242
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
4343

4444
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
45+
ENV NO_DOWNLOAD_CI_RUSTC 1
46+
ENV NO_DOWNLOAD_CI_LLVM 1
47+
4548

4649
# Check library crates on all tier 1 targets.
4750
# We disable optimized compiler built-ins because that requires a C toolchain for the target.

Diff for: src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ ENV RUST_CONFIGURE_ARGS \
8484
--enable-new-symbol-mangling
8585

8686
ENV HOST_TARGET x86_64-unknown-linux-gnu
87-
ENV FORCE_CI_RUSTC 1
87+
ENV NO_DOWNLOAD_CI_RUSTC 1
88+
ENV NO_DOWNLOAD_CI_LLVM 1
8889

8990
COPY host-x86_64/dist-x86_64-linux/shared.sh /scripts/
9091
COPY host-x86_64/dist-x86_64-linux/build-gccjit.sh /scripts/

0 commit comments

Comments
 (0)