Skip to content

Commit ea38b2e

Browse files
committed
Auto merge of #120744 - ehuss:apple-ninja-testing, r=<try>
Apple CI build testing
2 parents 42752cb + 1c71f53 commit ea38b2e

File tree

3 files changed

+358
-166
lines changed

3 files changed

+358
-166
lines changed

.github/workflows/ci.yml

Lines changed: 119 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -36,138 +36,6 @@ concurrency:
3636
group: "${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}"
3737
cancel-in-progress: true
3838
jobs:
39-
pr:
40-
name: "PR - ${{ matrix.name }}"
41-
env:
42-
PR_CI_JOB: 1
43-
CI_JOB_NAME: "${{ matrix.name }}"
44-
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
45-
HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
46-
DOCKER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
47-
SCCACHE_BUCKET: rust-lang-ci-sccache2
48-
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
49-
CACHE_DOMAIN: ci-caches.rust-lang.org
50-
if: "github.event_name == 'pull_request'"
51-
continue-on-error: "${{ matrix.name == 'mingw-check-tidy' }}"
52-
strategy:
53-
matrix:
54-
include:
55-
- name: mingw-check
56-
os: ubuntu-20.04-4core-16gb
57-
env: {}
58-
- name: mingw-check-tidy
59-
os: ubuntu-20.04-4core-16gb
60-
env: {}
61-
- name: x86_64-gnu-llvm-16
62-
env:
63-
ENABLE_GCC_CODEGEN: "1"
64-
os: ubuntu-20.04-16core-64gb
65-
- name: x86_64-gnu-tools
66-
os: ubuntu-20.04-16core-64gb
67-
env: {}
68-
timeout-minutes: 600
69-
runs-on: "${{ matrix.os }}"
70-
steps:
71-
- name: disable git crlf conversion
72-
run: git config --global core.autocrlf false
73-
- name: checkout the source code
74-
uses: actions/checkout@v4
75-
with:
76-
fetch-depth: 2
77-
- name: configure the PR in which the error message will be posted
78-
run: "echo \"[CI_PR_NUMBER=$num]\""
79-
env:
80-
num: "${{ github.event.number }}"
81-
if: "success() && !env.SKIP_JOB && github.event_name == 'pull_request'"
82-
- name: add extra environment variables
83-
run: src/ci/scripts/setup-environment.sh
84-
env:
85-
EXTRA_VARIABLES: "${{ toJson(matrix.env) }}"
86-
if: success() && !env.SKIP_JOB
87-
- name: decide whether to skip this job
88-
run: src/ci/scripts/should-skip-this.sh
89-
if: success() && !env.SKIP_JOB
90-
- name: ensure the channel matches the target branch
91-
run: src/ci/scripts/verify-channel.sh
92-
if: success() && !env.SKIP_JOB
93-
- name: collect CPU statistics
94-
run: src/ci/scripts/collect-cpu-stats.sh
95-
if: success() && !env.SKIP_JOB
96-
- name: show the current environment
97-
run: src/ci/scripts/dump-environment.sh
98-
if: success() && !env.SKIP_JOB
99-
- name: install awscli
100-
run: src/ci/scripts/install-awscli.sh
101-
if: success() && !env.SKIP_JOB
102-
- name: install sccache
103-
run: src/ci/scripts/install-sccache.sh
104-
if: success() && !env.SKIP_JOB
105-
- name: select Xcode
106-
run: src/ci/scripts/select-xcode.sh
107-
if: success() && !env.SKIP_JOB
108-
- name: install clang
109-
run: src/ci/scripts/install-clang.sh
110-
if: success() && !env.SKIP_JOB
111-
- name: install tidy
112-
run: src/ci/scripts/install-tidy.sh
113-
if: success() && !env.SKIP_JOB
114-
- name: install WIX
115-
run: src/ci/scripts/install-wix.sh
116-
if: success() && !env.SKIP_JOB
117-
- name: disable git crlf conversion
118-
run: src/ci/scripts/disable-git-crlf-conversion.sh
119-
if: success() && !env.SKIP_JOB
120-
- name: checkout submodules
121-
run: src/ci/scripts/checkout-submodules.sh
122-
if: success() && !env.SKIP_JOB
123-
- name: install MSYS2
124-
run: src/ci/scripts/install-msys2.sh
125-
if: success() && !env.SKIP_JOB
126-
- name: install MinGW
127-
run: src/ci/scripts/install-mingw.sh
128-
if: success() && !env.SKIP_JOB
129-
- name: install ninja
130-
run: src/ci/scripts/install-ninja.sh
131-
if: success() && !env.SKIP_JOB
132-
- name: enable ipv6 on Docker
133-
run: src/ci/scripts/enable-docker-ipv6.sh
134-
if: success() && !env.SKIP_JOB
135-
- name: disable git crlf conversion
136-
run: src/ci/scripts/disable-git-crlf-conversion.sh
137-
if: success() && !env.SKIP_JOB
138-
- name: ensure line endings are correct
139-
run: src/ci/scripts/verify-line-endings.sh
140-
if: success() && !env.SKIP_JOB
141-
- name: ensure backported commits are in upstream branches
142-
run: src/ci/scripts/verify-backported-commits.sh
143-
if: success() && !env.SKIP_JOB
144-
- name: ensure the stable version number is correct
145-
run: src/ci/scripts/verify-stable-version-number.sh
146-
if: success() && !env.SKIP_JOB
147-
- name: run the build
148-
run: src/ci/scripts/run-build-from-ci.sh
149-
env:
150-
AWS_ACCESS_KEY_ID: "${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
151-
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
152-
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
153-
if: success() && !env.SKIP_JOB
154-
- name: create github artifacts
155-
run: src/ci/scripts/create-doc-artifacts.sh
156-
if: success() && !env.SKIP_JOB
157-
- name: upload artifacts to github
158-
uses: actions/upload-artifact@v3
159-
with:
160-
name: "${{ env.DOC_ARTIFACT_NAME }}"
161-
path: obj/artifacts/doc
162-
if-no-files-found: ignore
163-
retention-days: 5
164-
if: success() && !env.SKIP_JOB
165-
- name: upload artifacts to S3
166-
run: src/ci/scripts/upload-artifacts.sh
167-
env:
168-
AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
169-
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
170-
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
17139
auto:
17240
name: "auto - ${{ matrix.name }}"
17341
env:
@@ -583,10 +451,126 @@ jobs:
583451
strategy:
584452
matrix:
585453
include:
586-
- name: dist-x86_64-linux
454+
- name: dist-apple-various
587455
env:
588-
CODEGEN_BACKENDS: "llvm,cranelift"
589-
os: ubuntu-20.04-16core-64gb
456+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
457+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
458+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
459+
MACOSX_DEPLOYMENT_TARGET: 10.12
460+
SELECT_XCODE: /Applications/Xcode_15.2.app
461+
USE_XCODE_CLANG: 1
462+
NO_LLVM_ASSERTIONS: 1
463+
NO_DEBUG_ASSERTIONS: 1
464+
NO_OVERFLOW_CHECKS: 1
465+
os: macos-13
466+
- name: dist-apple-various-2
467+
env:
468+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
469+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
470+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
471+
MACOSX_DEPLOYMENT_TARGET: 10.12
472+
SELECT_XCODE: /Applications/Xcode_15.2.app
473+
USE_XCODE_CLANG: 1
474+
NO_LLVM_ASSERTIONS: 1
475+
NO_DEBUG_ASSERTIONS: 1
476+
NO_OVERFLOW_CHECKS: 1
477+
os: macos-13
478+
- name: dist-apple-various-3
479+
env:
480+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
481+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
482+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
483+
MACOSX_DEPLOYMENT_TARGET: 10.12
484+
SELECT_XCODE: /Applications/Xcode_15.2.app
485+
USE_XCODE_CLANG: 1
486+
NO_LLVM_ASSERTIONS: 1
487+
NO_DEBUG_ASSERTIONS: 1
488+
NO_OVERFLOW_CHECKS: 1
489+
os: macos-13
490+
- name: dist-apple-various-4
491+
env:
492+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
493+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
494+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
495+
MACOSX_DEPLOYMENT_TARGET: 10.12
496+
SELECT_XCODE: /Applications/Xcode_15.2.app
497+
USE_XCODE_CLANG: 1
498+
NO_LLVM_ASSERTIONS: 1
499+
NO_DEBUG_ASSERTIONS: 1
500+
NO_OVERFLOW_CHECKS: 1
501+
os: macos-13
502+
- name: dist-apple-various-5
503+
env:
504+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
505+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
506+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
507+
MACOSX_DEPLOYMENT_TARGET: 10.12
508+
SELECT_XCODE: /Applications/Xcode_15.2.app
509+
USE_XCODE_CLANG: 1
510+
NO_LLVM_ASSERTIONS: 1
511+
NO_DEBUG_ASSERTIONS: 1
512+
NO_OVERFLOW_CHECKS: 1
513+
os: macos-13
514+
- name: dist-apple-various-6
515+
env:
516+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
517+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
518+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
519+
MACOSX_DEPLOYMENT_TARGET: 10.12
520+
SELECT_XCODE: /Applications/Xcode_15.2.app
521+
USE_XCODE_CLANG: 1
522+
NO_LLVM_ASSERTIONS: 1
523+
NO_DEBUG_ASSERTIONS: 1
524+
NO_OVERFLOW_CHECKS: 1
525+
os: macos-13
526+
- name: dist-apple-various-7
527+
env:
528+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
529+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
530+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
531+
MACOSX_DEPLOYMENT_TARGET: 10.12
532+
SELECT_XCODE: /Applications/Xcode_15.2.app
533+
USE_XCODE_CLANG: 1
534+
NO_LLVM_ASSERTIONS: 1
535+
NO_DEBUG_ASSERTIONS: 1
536+
NO_OVERFLOW_CHECKS: 1
537+
os: macos-13
538+
- name: dist-apple-various-8
539+
env:
540+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
541+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
542+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
543+
MACOSX_DEPLOYMENT_TARGET: 10.12
544+
SELECT_XCODE: /Applications/Xcode_15.2.app
545+
USE_XCODE_CLANG: 1
546+
NO_LLVM_ASSERTIONS: 1
547+
NO_DEBUG_ASSERTIONS: 1
548+
NO_OVERFLOW_CHECKS: 1
549+
os: macos-13
550+
- name: dist-apple-various-9
551+
env:
552+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
553+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
554+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
555+
MACOSX_DEPLOYMENT_TARGET: 10.12
556+
SELECT_XCODE: /Applications/Xcode_15.2.app
557+
USE_XCODE_CLANG: 1
558+
NO_LLVM_ASSERTIONS: 1
559+
NO_DEBUG_ASSERTIONS: 1
560+
NO_OVERFLOW_CHECKS: 1
561+
os: macos-13
562+
- name: dist-apple-various-10
563+
env:
564+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
565+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
566+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
567+
MACOSX_DEPLOYMENT_TARGET: 10.12
568+
SELECT_XCODE: /Applications/Xcode_15.2.app
569+
USE_XCODE_CLANG: 1
570+
NO_LLVM_ASSERTIONS: 1
571+
NO_DEBUG_ASSERTIONS: 1
572+
NO_OVERFLOW_CHECKS: 1
573+
os: macos-13
590574
timeout-minutes: 600
591575
runs-on: "${{ matrix.os }}"
592576
steps:

0 commit comments

Comments
 (0)