Skip to content

Commit 144bdf5

Browse files
committed
Remove master CI job
1 parent 865808b commit 144bdf5

File tree

2 files changed

+14
-45
lines changed

2 files changed

+14
-45
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -152,30 +152,6 @@ jobs:
152152
AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
153153
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
154154
if: "success() && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
155-
master:
156-
name: master
157-
runs-on: ubuntu-latest
158-
env:
159-
SCCACHE_BUCKET: rust-lang-ci-sccache2
160-
DEPLOY_BUCKET: rust-lang-ci2
161-
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
162-
TOOLSTATE_ISSUES_API_URL: "https://api.github.com/repos/rust-lang/rust/issues"
163-
TOOLSTATE_PUBLISH: 1
164-
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZI5DHEBFL
165-
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZN24CBO55
166-
AWS_REGION: us-west-1
167-
CACHE_DOMAIN: ci-caches.rust-lang.org
168-
if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'"
169-
steps:
170-
- name: checkout the source code
171-
uses: actions/checkout@v4
172-
with:
173-
fetch-depth: 2
174-
- name: publish toolstate
175-
run: src/ci/publish_toolstate.sh
176-
shell: bash
177-
env:
178-
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
179155
try-success:
180156
needs:
181157
- job
@@ -201,9 +177,12 @@ jobs:
201177
- job
202178
if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
203179
steps:
204-
- name: mark the job as a success
205-
run: exit 0
180+
- name: publish toolstate
181+
run: src/ci/publish_toolstate.sh
206182
shell: bash
183+
if: "success() && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
184+
env:
185+
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
207186
name: bors build finished
208187
runs-on: ubuntu-latest
209188
auto-failure:

src/ci/github-actions/ci.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -351,24 +351,6 @@ jobs:
351351
# This hack is taken from https://github.com/ferrocene/ferrocene/blob/d43edc6b7697cf1719ec1c17c54904ab94825763/.github/workflows/release.yml#L75-L82
352352
if: fromJSON(needs.calculate_matrix.outputs.jobs)[0] != null
353353

354-
master:
355-
name: master
356-
runs-on: ubuntu-latest
357-
env:
358-
<<: [*prod-variables]
359-
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'
360-
steps:
361-
- name: checkout the source code
362-
uses: actions/checkout@v4
363-
with:
364-
fetch-depth: 2
365-
366-
- name: publish toolstate
367-
run: src/ci/publish_toolstate.sh
368-
shell: bash
369-
env:
370-
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
371-
372354
# These jobs don't actually test anything, but they're used to tell bors the
373355
# build completed, as there is no practical way to detect when a workflow is
374356
# successful listening to webhooks only.
@@ -383,7 +365,15 @@ jobs:
383365
auto-success:
384366
needs: [ job ]
385367
if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
386-
<<: *base-success-job
368+
<<: *base-outcome-job
369+
steps:
370+
- name: publish toolstate
371+
run: src/ci/publish_toolstate.sh
372+
shell: bash
373+
if: success() && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')
374+
env:
375+
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
376+
387377
auto-failure:
388378
needs: [ job ]
389379
if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"

0 commit comments

Comments
 (0)