Skip to content

Commit

Permalink
Auto merge of rust-lang#132721 - MarcoIeni:mingw-split, r=<try>
Browse files Browse the repository at this point in the history
CI: split x86_64-mingw job

try-job: x86_64-mingw-1
try-job: x86_64-mingw-2
  • Loading branch information
bors committed Nov 15, 2024
2 parents f00f682 + 0d02d12 commit 9c1a49a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
9 changes: 7 additions & 2 deletions src/bootstrap/mk/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,16 @@ ci-msvc: ci-msvc-py ci-msvc-ps1

## MingW native builders

# Set of tests that should represent half of the time of the test suite.
# Used to split tests across multiple CI runners.
TESTS_IN_MINGW_2 := \
tests/ui

# test both x and bootstrap entrypoints
ci-mingw-x:
$(Q)$(CFG_SRC_DIR)/x test --stage 2 tidy
$(Q)$(CFG_SRC_DIR)/x test --stage 2 $(TESTS_IN_MINGW_2:%=--exclude %)
ci-mingw-bootstrap:
$(Q)$(BOOTSTRAP) test --stage 2 --skip tidy
$(Q)$(BOOTSTRAP) test --stage 2 $(TESTS_IN_MINGW_2)
ci-mingw: ci-mingw-x ci-mingw-bootstrap

.PHONY: dist
13 changes: 11 additions & 2 deletions src/ci/github-actions/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,18 @@ auto:
NO_DOWNLOAD_CI_LLVM: 1
<<: *job-windows-8c

- image: x86_64-mingw
- image: x86_64-mingw-1
env:
SCRIPT: make ci-mingw
SCRIPT: make ci-mingw-x
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
# We are intentionally allowing an old toolchain on this builder (and that's
# incompatible with LLVM downloads today).
NO_DOWNLOAD_CI_LLVM: 1
<<: *job-windows-8c

- image: x86_64-mingw-2
env:
SCRIPT: make ci-mingw-bootstrap
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
# We are intentionally allowing an old toolchain on this builder (and that's
# incompatible with LLVM downloads today).
Expand Down
3 changes: 2 additions & 1 deletion src/ci/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ function isLinux {
}

function isKnownToBeMingwBuild {
isGitHubActions && [[ "${CI_JOB_NAME}" == *mingw ]]
# CI_JOB_NAME must contain "mingw" to be considered a MinGW build.
isGitHubActions && [[ "${CI_JOB_NAME}" == *mingw* ]]
}

function isCiBranch {
Expand Down

0 comments on commit 9c1a49a

Please sign in to comment.