From 85348e39795311396a9cd1b72e5b7db988c4e749 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Mon, 8 Jun 2026 22:41:41 +0100 Subject: [PATCH] CI: Attempt to skip RTLMeter run jobs properly --- .github/workflows/rtlmeter.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rtlmeter.yml b/.github/workflows/rtlmeter.yml index 6cf357f67..d2880b476 100644 --- a/.github/workflows/rtlmeter.yml +++ b/.github/workflows/rtlmeter.yml @@ -107,8 +107,9 @@ jobs: - build-gcc-new - build-gcc-old # Run even if 'build-*-old' was skipped (no old SHA), but not if any - # dependency failed or the workflow was cancelled. - if: ${{ !failure() && !cancelled() }} + # dependency failed, the workflow was cancelled, or 'start' was skipped + # (e.g. the workflow was not enabled, so there is nothing to run against). + if: ${{ !failure() && !cancelled() && needs.start.result == 'success' }} uses: ./.github/workflows/reusable-rtlmeter-run.yml with: tag: gcc @@ -133,8 +134,9 @@ jobs: - build-clang-new - build-clang-old # Run even if 'build-*-old' was skipped (no old SHA), but not if any - # dependency failed or the workflow was cancelled. - if: ${{ !failure() && !cancelled() }} + # dependency failed, the workflow was cancelled, or 'start' was skipped + # (e.g. the workflow was not enabled, so there is nothing to run against). + if: ${{ !failure() && !cancelled() && needs.start.result == 'success' }} uses: ./.github/workflows/reusable-rtlmeter-run.yml with: tag: clang @@ -159,8 +161,9 @@ jobs: - build-gcc-new - build-gcc-old # Run even if 'build-*-old' was skipped (no old SHA), but not if any - # dependency failed or the workflow was cancelled. - if: ${{ !failure() && !cancelled() }} + # dependency failed, the workflow was cancelled, or 'start' was skipped + # (e.g. the workflow was not enabled, so there is nothing to run against). + if: ${{ !failure() && !cancelled() && needs.start.result == 'success' }} uses: ./.github/workflows/reusable-rtlmeter-run.yml with: tag: gcc-hier