Skip to content

Commit 83d2dd2

Browse files
committed
[HACK] Perform try builds for aarch64-apple-darwin; disable PR CI
1 parent 744f16d commit 83d2dd2

File tree

2 files changed

+37
-158
lines changed

2 files changed

+37
-158
lines changed

.github/workflows/ci.yml

+12-130
Original file line numberDiff line numberDiff line change
@@ -35,133 +35,6 @@ concurrency:
3535
group: "${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}"
3636
cancel-in-progress: true
3737
jobs:
38-
pr:
39-
name: "PR - ${{ matrix.name }}"
40-
env:
41-
PR_CI_JOB: 1
42-
CI_JOB_NAME: "${{ matrix.name }}"
43-
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
44-
HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
45-
SCCACHE_BUCKET: rust-lang-ci-sccache2
46-
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
47-
CACHE_DOMAIN: ci-caches.rust-lang.org
48-
if: "github.event_name == 'pull_request'"
49-
continue-on-error: "${{ matrix.name == 'mingw-check-tidy' }}"
50-
strategy:
51-
matrix:
52-
include:
53-
- name: mingw-check
54-
os: ubuntu-20.04-4core-16gb
55-
env: {}
56-
- name: mingw-check-tidy
57-
os: ubuntu-20.04-4core-16gb
58-
env: {}
59-
- name: x86_64-gnu-llvm-15
60-
os: ubuntu-20.04-16core-64gb
61-
env: {}
62-
- name: x86_64-gnu-tools
63-
os: ubuntu-20.04-16core-64gb
64-
env: {}
65-
timeout-minutes: 600
66-
runs-on: "${{ matrix.os }}"
67-
steps:
68-
- name: disable git crlf conversion
69-
run: git config --global core.autocrlf false
70-
- name: checkout the source code
71-
uses: actions/checkout@v4
72-
with:
73-
fetch-depth: 2
74-
- name: configure the PR in which the error message will be posted
75-
run: "echo \"[CI_PR_NUMBER=$num]\""
76-
env:
77-
num: "${{ github.event.number }}"
78-
if: "success() && !env.SKIP_JOB && github.event_name == 'pull_request'"
79-
- name: add extra environment variables
80-
run: src/ci/scripts/setup-environment.sh
81-
env:
82-
EXTRA_VARIABLES: "${{ toJson(matrix.env) }}"
83-
if: success() && !env.SKIP_JOB
84-
- name: decide whether to skip this job
85-
run: src/ci/scripts/should-skip-this.sh
86-
if: success() && !env.SKIP_JOB
87-
- name: ensure the channel matches the target branch
88-
run: src/ci/scripts/verify-channel.sh
89-
if: success() && !env.SKIP_JOB
90-
- name: collect CPU statistics
91-
run: src/ci/scripts/collect-cpu-stats.sh
92-
if: success() && !env.SKIP_JOB
93-
- name: show the current environment
94-
run: src/ci/scripts/dump-environment.sh
95-
if: success() && !env.SKIP_JOB
96-
- name: install awscli
97-
run: src/ci/scripts/install-awscli.sh
98-
if: success() && !env.SKIP_JOB
99-
- name: install sccache
100-
run: src/ci/scripts/install-sccache.sh
101-
if: success() && !env.SKIP_JOB
102-
- name: select Xcode
103-
run: src/ci/scripts/select-xcode.sh
104-
if: success() && !env.SKIP_JOB
105-
- name: install clang
106-
run: src/ci/scripts/install-clang.sh
107-
if: success() && !env.SKIP_JOB
108-
- name: install WIX
109-
run: src/ci/scripts/install-wix.sh
110-
if: success() && !env.SKIP_JOB
111-
- name: disable git crlf conversion
112-
run: src/ci/scripts/disable-git-crlf-conversion.sh
113-
if: success() && !env.SKIP_JOB
114-
- name: checkout submodules
115-
run: src/ci/scripts/checkout-submodules.sh
116-
if: success() && !env.SKIP_JOB
117-
- name: install MSYS2
118-
run: src/ci/scripts/install-msys2.sh
119-
if: success() && !env.SKIP_JOB
120-
- name: install MinGW
121-
run: src/ci/scripts/install-mingw.sh
122-
if: success() && !env.SKIP_JOB
123-
- name: install ninja
124-
run: src/ci/scripts/install-ninja.sh
125-
if: success() && !env.SKIP_JOB
126-
- name: enable ipv6 on Docker
127-
run: src/ci/scripts/enable-docker-ipv6.sh
128-
if: success() && !env.SKIP_JOB
129-
- name: disable git crlf conversion
130-
run: src/ci/scripts/disable-git-crlf-conversion.sh
131-
if: success() && !env.SKIP_JOB
132-
- name: ensure line endings are correct
133-
run: src/ci/scripts/verify-line-endings.sh
134-
if: success() && !env.SKIP_JOB
135-
- name: ensure backported commits are in upstream branches
136-
run: src/ci/scripts/verify-backported-commits.sh
137-
if: success() && !env.SKIP_JOB
138-
- name: ensure the stable version number is correct
139-
run: src/ci/scripts/verify-stable-version-number.sh
140-
if: success() && !env.SKIP_JOB
141-
- name: run the build
142-
run: src/ci/scripts/run-build-from-ci.sh
143-
env:
144-
AWS_ACCESS_KEY_ID: "${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
145-
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
146-
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
147-
if: success() && !env.SKIP_JOB
148-
- name: create github artifacts
149-
run: src/ci/scripts/create-doc-artifacts.sh
150-
if: success() && !env.SKIP_JOB
151-
- name: upload artifacts to github
152-
uses: actions/upload-artifact@v3
153-
with:
154-
name: "${{ env.DOC_ARTIFACT_NAME }}"
155-
path: obj/artifacts/doc
156-
if-no-files-found: ignore
157-
retention-days: 5
158-
if: success() && !env.SKIP_JOB
159-
- name: upload artifacts to S3
160-
run: src/ci/scripts/upload-artifacts.sh
161-
env:
162-
AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
163-
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
164-
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
16538
auto:
16639
name: "auto - ${{ matrix.name }}"
16740
env:
@@ -575,10 +448,19 @@ jobs:
575448
strategy:
576449
matrix:
577450
include:
578-
- name: dist-x86_64-linux
451+
- name: aarch64-apple
579452
env:
580-
CODEGEN_BACKENDS: "llvm,cranelift"
581-
os: ubuntu-20.04-16core-64gb
453+
SCRIPT: "./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
454+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
455+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
456+
SELECT_XCODE: /Applications/Xcode_13.4.1.app
457+
USE_XCODE_CLANG: 1
458+
MACOSX_DEPLOYMENT_TARGET: 11.0
459+
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
460+
NO_LLVM_ASSERTIONS: 1
461+
NO_DEBUG_ASSERTIONS: 1
462+
NO_OVERFLOW_CHECKS: 1
463+
os: macos-13-xlarge
582464
timeout-minutes: 600
583465
runs-on: "${{ matrix.os }}"
584466
steps:

src/ci/github-actions/ci.yml

+25-28
Original file line numberDiff line numberDiff line change
@@ -317,28 +317,28 @@ concurrency:
317317
cancel-in-progress: true
318318

319319
jobs:
320-
pr:
321-
<<: *base-ci-job
322-
name: PR - ${{ matrix.name }}
323-
env:
324-
<<: [*shared-ci-variables, *public-variables]
325-
PR_CI_JOB: 1
326-
if: github.event_name == 'pull_request'
327-
continue-on-error: ${{ matrix.name == 'mingw-check-tidy' }}
328-
strategy:
329-
matrix:
330-
include:
331-
- name: mingw-check
332-
<<: *job-linux-4c
333-
334-
- name: mingw-check-tidy
335-
<<: *job-linux-4c
336-
337-
- name: x86_64-gnu-llvm-15
338-
<<: *job-linux-16c
339-
340-
- name: x86_64-gnu-tools
341-
<<: *job-linux-16c
320+
# pr:
321+
# <<: *base-ci-job
322+
# name: PR - ${{ matrix.name }}
323+
# env:
324+
# <<: [*shared-ci-variables, *public-variables]
325+
# PR_CI_JOB: 1
326+
# if: github.event_name == 'pull_request'
327+
# continue-on-error: ${{ matrix.name == 'mingw-check-tidy' }}
328+
# strategy:
329+
# matrix:
330+
# include:
331+
# - name: mingw-check
332+
# <<: *job-linux-4c
333+
334+
# - name: mingw-check-tidy
335+
# <<: *job-linux-4c
336+
337+
# - name: x86_64-gnu-llvm-15
338+
# <<: *job-linux-16c
339+
340+
# - name: x86_64-gnu-tools
341+
# <<: *job-linux-16c
342342

343343
auto:
344344
<<: *base-ci-job
@@ -568,7 +568,8 @@ jobs:
568568
<<: *job-macos-m1
569569

570570
# This target only needs to support 11.0 and up as nothing else supports the hardware
571-
- name: aarch64-apple
571+
- &aarch64-apple
572+
name: aarch64-apple
572573
env:
573574
SCRIPT: ./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin
574575
RUST_CONFIGURE_ARGS: >-
@@ -727,11 +728,7 @@ jobs:
727728
strategy:
728729
matrix:
729730
include:
730-
- &dist-x86_64-linux
731-
name: dist-x86_64-linux
732-
env:
733-
CODEGEN_BACKENDS: llvm,cranelift
734-
<<: *job-linux-16c
731+
- <<: *aarch64-apple
735732

736733
master:
737734
name: master

0 commit comments

Comments
 (0)