@@ -38,6 +38,8 @@ concurrency:
38
38
cancel-in-progress : true
39
39
env :
40
40
TOOLSTATE_REPO : " https://github.com/rust-lang-nursery/rust-toolstate"
41
+ # This will be empty in PR jobs.
42
+ TOOLSTATE_REPO_ACCESS_TOKEN : ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
41
43
jobs :
42
44
# The job matrix for `calculate_matrix` is defined in src/ci/github-actions/jobs.yml.
43
45
# It calculates which jobs should be executed, based on the data of the ${{ github }} context.
52
54
- name : Checkout the source code
53
55
uses : actions/checkout@v4
54
56
- name : Calculate the CI job matrix
57
+ env :
58
+ COMMIT_MESSAGE : ${{ github.event.head_commit.message }}
55
59
run : python3 src/ci/github-actions/calculate-job-matrix.py >> $GITHUB_OUTPUT
56
60
id : jobs
57
61
job :
75
79
matrix :
76
80
# Check the `calculate_matrix` job to see how is the matrix defined.
77
81
include : ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }}
78
- # GitHub Actions fails the workflow if an empty list of jobs is provided to
79
- # the workflow, so we need to skip this job if nothing was produced by
80
- # the Python script.
81
- #
82
- # Unfortunately checking whether a list is empty is not possible in a nice
83
- # way due to GitHub Actions expressions limits.
84
- # This hack is taken from https://github.com/ferrocene/ferrocene/blob/d43edc6b7697cf1719ec1c17c54904ab94825763/.github/workflows/release.yml#L75-L82
85
- if : fromJSON(needs.calculate_matrix.outputs.jobs)[0] != null
86
82
steps :
87
83
- if : contains(matrix.os, 'windows')
88
84
99
95
path-type : inherit
100
96
install : >
101
97
make
102
- dos2unix
103
- diffutils
104
98
105
99
- name : disable git crlf conversion
106
100
run : git config --global core.autocrlf false
@@ -161,9 +155,6 @@ jobs:
161
155
- name : checkout submodules
162
156
run : src/ci/scripts/checkout-submodules.sh
163
157
164
- - name : install MSYS2
165
- run : src/ci/scripts/install-msys2.sh
166
-
167
158
- name : install MinGW
168
159
run : src/ci/scripts/install-mingw.sh
169
160
@@ -196,7 +187,6 @@ jobs:
196
187
env :
197
188
AWS_ACCESS_KEY_ID : ${{ env.CACHES_AWS_ACCESS_KEY_ID }}
198
189
AWS_SECRET_ACCESS_KEY : ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}
199
- TOOLSTATE_REPO_ACCESS_TOKEN : ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
200
190
201
191
- name : create github artifacts
202
192
run : src/ci/scripts/create-doc-artifacts.sh
@@ -246,4 +236,5 @@ jobs:
246
236
shell : bash
247
237
if : needs.calculate_matrix.outputs.run_type == 'auto'
248
238
env :
249
- TOOLSTATE_REPO_ACCESS_TOKEN : ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
239
+ TOOLSTATE_ISSUES_API_URL : https://api.github.com/repos/rust-lang/rust/issues
240
+ TOOLSTATE_PUBLISH : 1
0 commit comments