about summary refs log tree commit diff
path: root/src/ci
AgeCommit message (Collapse)AuthorLines
2024-03-04Auto merge of #120468 - alexcrichton:start-wasm32-wasi-rename, r=wesleywiserbors-2/+4
Add a new `wasm32-wasip1` target to rustc This commit adds a new target called `wasm32-wasip1` to rustc. This new target is explained in these two MCPs: * https://github.com/rust-lang/compiler-team/issues/607 * https://github.com/rust-lang/compiler-team/issues/695 In short, the previous `wasm32-wasi` target is going to be renamed to `wasm32-wasip1` to better live alongside the [new `wasm32-wasip2` target](https://github.com/rust-lang/rust/pull/119616). This new target is added alongside the `wasm32-wasi` target and has the exact same definition as the previous target. This PR is effectively a rename of `wasm32-wasi` to `wasm32-wasip1`. Note, however, that as explained in rust-lang/compiler-team#695 the previous `wasm32-wasi` target is not being removed at this time. This change will reach stable Rust before even a warning about the rename will be printed. At this time this change is just the start where a new target is introduced and users can start migrating if they support only Nightly for example.
2024-03-02Promote OpenHarmony targets to tier 2Amanieu d'Antras-0/+113
MCP: rust-lang/compiler-team#719
2024-03-02Add a new `wasm32-wasip1` target to rustcAlex Crichton-2/+4
This commit adds a new target called `wasm32-wasip1` to rustc. This new target is explained in these two MCPs: * https://github.com/rust-lang/compiler-team/issues/607 * https://github.com/rust-lang/compiler-team/issues/695 In short, the previous `wasm32-wasi` target is going to be renamed to `wasm32-wasip1` to better live alongside the [new `wasm32-wasip2` target](https://github.com/rust-lang/rust/pull/119616). This new target is added alongside the `wasm32-wasi` target and has the exact same definition as the previous target. This PR is effectively a rename of `wasm32-wasi` to `wasm32-wasip1`. Note, however, that as explained in rust-lang/compiler-team#695 the previous `wasm32-wasi` target is not being removed at this time. This change will reach stable Rust before even a warning about the rename will be printed. At this time this change is just the start where a new target is introduced and users can start migrating if they support only Nightly for example.
2024-02-25Auto merge of #121182 - majaha:mingw_ci_new, r=Mark-Simulacrumbors-15/+63
Improvements to building and CI for mingw/msys I was getting error messages when trying to follow the build instructions the mingw build for Rust, and managed to track the issue down to an incomparability of Rust's bootstrap program with MSYS2's version of git. Essentially, the problem is that MSYS2's git works in emulated unix-y paths, but bootstrap expects a Windows path. I found a workaround for this by using relative paths instead of absolute paths. Along with that fix, this PR also updates the build instructions for MinGW to be compatible with modern versions of MSYS2, and some changes to CI to make sure that MSYS2's version of git is tested. In particular, I'm suggesting using the [MSYS2 github action](https://github.com/marketplace/actions/setup-msys2) specially made for this purpose, which is much less hacky than the old approach and gives us more control of what packages are installed. I also cleaned up as many alternate versions of key tools as I could find from PATH, to avoid accidental usage, and cleaned up some abuses of the `CUSTOM_MINGW` environment variable. This fixes https://github.com/rust-lang/rust/issues/105696 and fixes https://github.com/rust-lang/rust/issues/117567
2024-02-17Update cargoWeihang Lo-0/+2
perl-core is added for building OpenSSL v3 See https://github.com/openssl/openssl/blob/openssl-3.2.1/NOTES-PERL.md
2024-02-16Changes to CI related to mingw and MSYSMatt Harding-15/+63
2024-02-13`cargo update`clubby789-2/+2
2024-02-13Use system clang for wasm32_unknown_unknown on x86-gnu-integrationNikita Popov-0/+4
Fuchsia clang does not include the wasm32 target, so instead install and use system clang for this purpose.
2024-02-13Set wasm32_unknown_unknown compiler in test-variousNikita Popov-0/+1
2024-02-13Add missing riscv32imafc_unknown_none_elf env vars to dist-various-1Nikita Popov-0/+2
These are necessary now that compiler-builtins requires a working C compiler for riscv.
2024-02-11Gate PR CI on clippy correctness lintsJakub Beránek-5/+1
2024-02-10Require that SELECT_XCODE is set.Eric Huss-3/+1
Allowing the Xcode version to "float" based on whatever default GitHub selects creates an unreliable environment. When GitHub changes the default, we can have multiple jobs in the same run using different versions as it rolls out across machines. It can also cause oscillation between runs as different machines are used. It also causes unpredictable timing when the updates happen. This change helps ensure that the version that is used is pinned. The downside is that it requires manually bumping the version, and the risk that if we take too long, older Xcodes will be removed and that will break the build.
2024-02-10Downgrade Xcode from the default (15.0) to 14.3.1.Eric Huss-4/+5
This seems to fix two sporadic errors that have been appearing in CI. One is an issue with cmake being unable to verify that cmake is able to build a simple test program. The other is a `invalid r_symbolnum` linking error when trying to build one of cranelift's tests. This is intended as a temporary fix until we can figure out how to resolve those issues.
2024-02-09Print image input file and checksum in CI onlyDianQK-3/+4
2024-02-07Rollup merge of #120726 - saethlin:no-bashism, r=Mark-SimulacrumGuillaume Boisseau-1/+1
Don't use bashism in checktools.sh `if [[` doesn't work because this is a `/bin/sh` script. We were never running the success side of this `if` at all.
2024-02-06Don't use bashism in checktools.shBen Kimock-1/+1
2024-02-04Use new publicly-available M1 runnersJake Goulding-1/+1
https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/
2024-02-04Re-enable M1 runners on GitHub ActionsJake Goulding-14/+22
This reverts commit 0f9844d10cc8210f1c0ef784ef8d67a1e073c3c1.
2024-01-31CI: Use ninja on apple buildersEric Huss-4/+5
2024-01-31Auto merge of #120358 - tmandry:bump-fuchsia-8c-tests, r=Mark-Simulacrumbors-5/+11
Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught https://github.com/rust-lang/rust-clippy/issues/11952 and #119593. See prior discussion on #119400 about building on 8 cores instead of 16. This PR combines changes from that and #119399, plus clean up. r? `@Mark-Simulacrum`
2024-01-28Print image input file and Docker versionJakub Beránek-0/+5
2024-01-26Bump Fuchsia (includes building tests)Tyler Mandry-1/+2
This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder.
2024-01-26Skip building cranelift for FuchsiaTyler Mandry-3/+8
This refactors run.sh to never override an explicit $CODEGEN_BACKENDS if set in the build.
2024-01-26Build Fuchsia on 8 cores instead of 16Tyler Mandry-1/+1
2024-01-22Cache CI Docker images in ghcr registryJakub Beránek-57/+54
2024-01-10Add debug info for macOS CI actionsEric Huss-0/+16
2024-01-07Auto merge of #119556 - onur-ozkan:optimized-compiler-builtins, r=onur-ozkanbors-0/+12
Reland optimized-compiler-builtins config Copy of #102579 PR. From #102579: > No concerns on my side. Currently, Jyn isn't actively working on the project. I will close this PR; open another one to cherry-pick the commits, resolve conflicts, and then r+ it. > Fixes https://github.com/rust-lang/rust/issues/102560. Fixes https://github.com/rust-lang/rust/issues/101172. Helps with https://github.com/rust-lang/rust/issues/105065 (although there's some weirdness there - it's still broken when optimized-compiler-builtins is set to true). Fixes https://github.com/rust-lang/rust/issues/102560. Fixes https://github.com/rust-lang/rust/issues/101172. Helps with https://github.com/rust-lang/rust/issues/105065 r? ghost
2024-01-07add a new `optimized_compiler_builtins` optionjyn-0/+12
in particular, this makes the `c` feature for compiler-builtins an explicit opt-in, rather than silently detected by whether `llvm-project` is checked out on disk. exposing this is necessary because the `cc` crate doesn't support cross-compiling to MSVC, and we want people to be able to run `x check --target foo` regardless of whether they have a c toolchain available. this also uses the new option in CI, where we *do* want to optimize compiler_builtins. the new option is off by default for the `dev` channel and on otherwise.
2024-01-06Run Miri and mir-opt tests without a target linkerBen Kimock-2/+0
2024-01-03Auto merge of #119549 - fmease:rollup-jxvbfes, r=fmeasebors-1/+6
Rollup of 21 pull requests Successful merges: - #119086 (Query panic!() to useful diagnostic) - #119239 (Remove unnecessary arm in `check_expr_yield`) - #119298 (suppress change-tracker warnings in CI containers) - #119319 (Document that File does not buffer reads/writes) - #119434 (rc: Take *const T in is_dangling) - #119444 (Rename `TyCtxt::is_closure` to `TyCtxt::is_closure_or_coroutine`) - #119474 (Update tracking issue of naked_functions) - #119476 (Pretty-print always-const trait predicates correctly) - #119477 (rustdoc ui: adjust tooltip z-index to be above sidebar) - #119479 (Remove two unused feature gates from rustc_query_impl) - #119487 (Minor improvements in comment on `freshen.rs`) - #119492 (Update books) - #119494 (Deny defaults for higher-ranked generic parameters) - #119498 (Update deadlinks of `strict_provenance` lints) - #119505 (Don't synthesize host effect params for trait associated functions marked const) - #119510 (Report I/O errors from rmeta encoding with emit_fatal) - #119512 (Mark myself as back from leave) - #119514 (coverage: Avoid a query stability hazard in `function_coverage_map`) - #119523 (llvm: Allow `noundef` in codegen tests) - #119534 (Update `thread_local` examples to use `local_key_cell_methods`) - #119544 (Fix: Properly set vendor in i686-win7-windows-msvc target) r? `@ghost` `@rustbot` modify labels: rollup
2024-01-03Rollup merge of #119298 - onur-ozkan:silence-change-tracker-warning-for-ci, ↵León Orell Valerian Liehr-1/+6
r=Mark-Simulacrum suppress change-tracker warnings in CI containers Fixes #119296
2024-01-03Temporarily disable M1 runners on GitHub ActionsJan David-22/+14
This commit temporarily reverts the addition of M1 runners on GitHub Actions to work around a billing issue related to their beta. It also removes the `aarch64-apple` job, which was only added after the addition of M1 runners. Since it has never been tested on the prior hardware, we are skipping the tests to reduce the risk of build failures.
2023-12-29Auto merge of #119373 - Kobzol:missing-tools-bootstrap, r=onur-ozkanbors-4/+0
Remove usage of deprecated `missing-tools` bootstrap flag This PR removes the usage of `--enable-missing-tools` in CI, as this config option is no longer used. It also removes `dist.missing-tools` config completely. Let me know which commits should I remove (if any). Fixes: https://github.com/rust-lang/rust/issues/79249 r? `@onur-ozkan`
2023-12-29Enable profiler in dist-powerpc-linuxQiu Chaofan-1/+1
2023-12-29suppress change-tracker warnings in containersonur-ozkan-1/+6
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-28Remove `--enable-missing-tools` usage in CIJakub Beránek-4/+0
2023-12-25Auto merge of #119283 - GuillaumeGomez:warning-block-pos, r=notriddlebors-1/+1
Fix display of warning block if it is first element of the top doc block It fixes the display of the warning block "i" element in case it is the first element: ![Screenshot from 2023-12-23 11-15-48](https://github.com/rust-lang/rust/assets/3050060/99b6796e-2a09-4053-813e-84288ce76c4c) It now looks like this: ![image](https://github.com/rust-lang/rust/assets/3050060/306b4cf1-3a7d-4681-b0cf-3e721186bfe8) The update for the `browser-ui-test` framework is because it didn't detect correctly pseudo elements if they ended with a digit or a dash. r? `@notriddle`
2023-12-24Update browser-ui-test version to 0.16.11Guillaume Gomez-1/+1
2023-12-24Rollup merge of #119165 - onur-ozkan:update-container-entrypoint, r=KobzolMatthias Krüger-4/+21
improve container runner script First commit fixes #118930 Second commit is mostly for development purposes. In read-only mode submodules cannot be initialized due to access limitations (see the log below), which means that tools cannot be built. ```sh Updating submodule src/tools/cargo error: could not lock config file .git/config: Read-only file system error: could not lock config file .git/config: Read-only file system fatal: Failed to register url for submodule path 'src/tools/cargo' error: could not lock config file .git/config: Read-only file system error: could not lock config file .git/config: Read-only file system fatal: Failed to register url for submodule path 'src/tools/cargo' Build completed unsuccessfully in 0:00:00 ```
2023-12-24allow devs to turn-off read-only modeonur-ozkan-1/+9
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-21run fuchsia tests only on nightlyPietro Albini-0/+5
2023-12-20if source is git, make /checkout dir safe for gitonur-ozkan-3/+12
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-18ci: docker: dist-various-1: Include RISC-V C compilersAlistair Francis-8/+30
The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: https://github.com/rust-lang/compiler-builtins/issues/350 2: https://github.com/rust-lang/compiler-builtins/commit/e4f46b91ca843297fc065e20f1591e4971ae608c Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2023-12-16test `x clippy --stage 0` in ciJoshua Nelson-0/+6
2023-12-12Rollup merge of #118445 - ferrocene:jp-support-reuse-in-submodules, ↵Matthias Krüger-1/+1
r=Mark-Simulacrum Let `reuse` look inside git submodules Changes `collect-license-metadata` and `generate-copyright` so they can now look at the git submodules. Unfortunately `reuse` chokes on the LLVM submodule - it finds the word "Copyright" or the unicode copyright symbol in all kinds of places, including UTF-8 test cases. The `reuse` tool expressly won't let you ignore folders, so we let it scan everything and then strip out the LLVM sub-folder in post. Instead, we add in a hand-curated list of copyright information gleaned by reading the LLVM codebase carefully, which is stored in `.reuse/dep5` in Debian format where `reuse` can find and use it. The `.reuse/dep5` continues to track copyright info for files in the tree that do not have SPDX metadata in them (i.e. all of them)
2023-12-07Build Fuchsia in CITyler Mandry-10/+140
2023-12-07Auto merge of #118463 - cuviper:restore-cg_gcc-ci, r=cuviper,GuillaumeGomezbors-7/+16
Re-enable `rustc_codegen_gcc` tests in CI When #117947 dropped llvm-15 from CI, we neglected to copy #117313's changes to enable `rustc_codegen_gcc` testing to the new base llvm-16. This is now restored, as well as copying the setup to llvm-17 as well so we hopefully won't miss it next time. In addition, due to case mismatch in `$extra_env` updates in `docker/run.sh`, I think it wasn't actually getting enabled before, but this should now be fixed. I also avoided the linker hack for `libgccjit.so` that was present before, because that's not needed if the version matches the base `gcc` used for linking. r? GuillaumeGomez
2023-12-05Add riscv32 imafc bare metal targetScott Mabin-0/+1
- riscv32imac-unknown-none-elf - Add platform support docs for rv32
2023-11-30Fix cg_gcc CI runGuillaume Gomez-7/+8
2023-11-29Re-enable `rustc_codegen_gcc` tests in CIJosh Stone-3/+11