From 8f9b3e2e7ca5fa2de9c5249e1f3a6c45d86c183e Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sun, 26 Oct 2025 09:51:53 +0100 Subject: [PATCH] Add better platform diagnostics to see which platform is used We now have same workflow running for both ARM and AMD and we need a bit better diagnostics printed to distinguish those different run types. * Tha name of the workflow is just changed to "Tests" * There is a job added that should immediately show the platform in the left-sidebar of GitHub Actions * The title containing platform is printed at the top of summary - before the constraints summary. --- .github/workflows/ci-amd-arm.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-amd-arm.yml b/.github/workflows/ci-amd-arm.yml index 16071e49c3d0f..f42d4397a826b 100644 --- a/.github/workflows/ci-amd-arm.yml +++ b/.github/workflows/ci-amd-arm.yml @@ -16,7 +16,7 @@ # under the License. # --- -name: Tests AMD/ARM +name: Tests on: # yamllint disable-line rule:truthy schedule: - cron: '28 1,3,7,9,13,15,19,21 * * *' @@ -166,8 +166,27 @@ jobs: env: PR_LABELS: ${{ steps.source-run-info.outputs.pr-labels }} GITHUB_CONTEXT: ${{ toJson(github) }} + + print-platform-arm: + name: "Platform: ARM" + needs: [build-info] + runs-on: ["ubuntu-22.04"] + if: needs.build-info.outputs.platform == 'linux/arm64' + steps: + - name: "Print architecture" + run: "echo '## Architecture: ARM' >> $GITHUB_STEP_SUMMARY" + + print-platform-amd: + name: "Platform: AMD" + needs: [build-info] + runs-on: ["ubuntu-22.04"] + if: needs.build-info.outputs.platform == 'linux/amd64' + steps: + - name: "Print architecture" + run: "echo '## Architecture: AMD' >> $GITHUB_STEP_SUMMARY" + run-pin-versions-hook: - name: "Run pin-versions hook" + name: "Pin actions" needs: [build-info] runs-on: ${{ fromJSON(needs.build-info.outputs.runner-type) }} if: needs.build-info.outputs.platform == 'linux/amd64'