|
58 | 58 | COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
59 | 59 | run: |
|
60 | 60 | cd src/ci/citool
|
61 |
| - cargo test |
62 |
| - cargo run calculate-job-matrix >> $GITHUB_OUTPUT |
| 61 | + CARGO_INCREMENTAL=0 cargo test |
| 62 | + CARGO_INCREMENTAL=0 cargo run calculate-job-matrix >> $GITHUB_OUTPUT |
63 | 63 | id: jobs
|
64 | 64 | job:
|
65 | 65 | name: ${{ matrix.full_name }}
|
@@ -182,19 +182,12 @@ jobs:
|
182 | 182 | - name: show the current environment
|
183 | 183 | run: src/ci/scripts/dump-environment.sh
|
184 | 184 |
|
185 |
| - # Temporary fix to unblock CI |
186 |
| - # Remove the latest Windows SDK for 32-bit Windows MSVC builds. |
187 |
| - # See issue https://github.com/rust-lang/rust/issues/137733 for more details. |
188 |
| - - name: Remove Windows SDK 10.0.26100.0 |
189 |
| - shell: powershell |
190 |
| - if: ${{ matrix.name == 'i686-msvc-1' || matrix.name == 'i686-msvc-2' || matrix.name == 'dist-i686-msvc' }} |
| 185 | + # Pre-build citool before the following step uninstalls rustup |
| 186 | + # Build it into the build directory, to avoid modifying sources |
| 187 | + - name: build citool |
191 | 188 | run: |
|
192 |
| - $kits = (Get-ItemProperty -path 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots').KitsRoot10 |
193 |
| - $sdk_version = "10.0.26100.0" |
194 |
| -
|
195 |
| - foreach ($kind in 'Bin', 'Lib', 'Include') { |
196 |
| - Remove-Item -Force -Recurse $kits\$kind\$sdk_version -ErrorAction Continue |
197 |
| - } |
| 189 | + cd src/ci/citool |
| 190 | + CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=../../../build/citool cargo build |
198 | 191 |
|
199 | 192 | - name: run the build
|
200 | 193 | # Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
|
@@ -232,16 +225,22 @@ jobs:
|
232 | 225 | # erroring about invalid credentials instead.
|
233 | 226 | if: github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
|
234 | 227 |
|
| 228 | + - name: postprocess metrics into the summary |
| 229 | + run: | |
| 230 | + if [ -f build/metrics.json ]; then |
| 231 | + ./build/citool/debug/citool postprocess-metrics build/metrics.json ${GITHUB_STEP_SUMMARY} |
| 232 | + elif [ -f obj/build/metrics.json ]; then |
| 233 | + ./build/citool/debug/citool postprocess-metrics obj/build/metrics.json ${GITHUB_STEP_SUMMARY} |
| 234 | + else |
| 235 | + echo "No metrics.json found" |
| 236 | + fi |
| 237 | +
|
235 | 238 | - name: upload job metrics to DataDog
|
236 | 239 | if: needs.calculate_matrix.outputs.run_type != 'pr'
|
237 | 240 | env:
|
238 |
| - DATADOG_SITE: datadoghq.com |
239 | 241 | DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
240 | 242 | DD_GITHUB_JOB_NAME: ${{ matrix.full_name }}
|
241 |
| - run: | |
242 |
| - cd src/ci |
243 |
| - npm ci |
244 |
| - python3 scripts/upload-build-metrics.py ../../build/cpu-usage.csv |
| 243 | + run: ./build/citool/debug/citool upload-build-metrics build/cpu-usage.csv |
245 | 244 |
|
246 | 245 | # This job isused to tell bors the final status of the build, as there is no practical way to detect
|
247 | 246 | # when a workflow is successful listening to webhooks only in our current bors implementation (homu).
|
|
0 commit comments