Skip to content

Commit b3d87fa

Browse files
committed
[HACK] Disable PR CI
1 parent 1436467 commit b3d87fa

File tree

2 files changed

+22
-146
lines changed

2 files changed

+22
-146
lines changed

.github/workflows/ci.yml

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

src/ci/github-actions/ci.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -308,28 +308,28 @@ concurrency:
308308
cancel-in-progress: true
309309

310310
jobs:
311-
pr:
312-
<<: *base-ci-job
313-
name: PR - ${{ matrix.name }}
314-
env:
315-
<<: [*shared-ci-variables, *public-variables]
316-
PR_CI_JOB: 1
317-
if: github.event_name == 'pull_request'
318-
continue-on-error: ${{ matrix.name == 'mingw-check-tidy' }}
319-
strategy:
320-
matrix:
321-
include:
322-
- name: mingw-check
323-
<<: *job-linux-4c
324-
325-
- name: mingw-check-tidy
326-
<<: *job-linux-4c
327-
328-
- name: x86_64-gnu-llvm-15
329-
<<: *job-linux-16c
330-
331-
- name: x86_64-gnu-tools
332-
<<: *job-linux-16c
311+
# pr:
312+
# <<: *base-ci-job
313+
# name: PR - ${{ matrix.name }}
314+
# env:
315+
# <<: [*shared-ci-variables, *public-variables]
316+
# PR_CI_JOB: 1
317+
# if: github.event_name == 'pull_request'
318+
# continue-on-error: ${{ matrix.name == 'mingw-check-tidy' }}
319+
# strategy:
320+
# matrix:
321+
# include:
322+
# - name: mingw-check
323+
# <<: *job-linux-4c
324+
325+
# - name: mingw-check-tidy
326+
# <<: *job-linux-4c
327+
328+
# - name: x86_64-gnu-llvm-15
329+
# <<: *job-linux-16c
330+
331+
# - name: x86_64-gnu-tools
332+
# <<: *job-linux-16c
333333

334334
auto:
335335
<<: *base-ci-job

0 commit comments

Comments
 (0)