From b9fd0667769ac8c163770d1075996370e3c0a1aa Mon Sep 17 00:00:00 2001 From: Khalil Estell Date: Fri, 12 Dec 2025 11:23:04 -0800 Subject: [PATCH] :bug: Use github.action_ref vs workflow_ref --- .github/workflows/package_and_upload_all.yml | 7 +- .github/workflows/self_check.yml | 222 +++++++++---------- 2 files changed, 116 insertions(+), 113 deletions(-) diff --git a/.github/workflows/package_and_upload_all.yml b/.github/workflows/package_and_upload_all.yml index 274a4a7..7f2442e 100644 --- a/.github/workflows/package_and_upload_all.yml +++ b/.github/workflows/package_and_upload_all.yml @@ -54,9 +54,12 @@ jobs: ci_ref: ${{ steps.extract.outputs.ci_ref }} steps: - id: extract + env: + WORKFLOW_REF: ${{ github.workflow_ref }} run: | - CI_REF="${{ github.workflow_ref }}" - CI_REF="${CI_REF#*@}" + echo "Workflow ref from env: '$WORKFLOW_REF'" + CI_REF="${WORKFLOW_REF#*@}" + echo "Extracted ref: '$CI_REF'" echo "ci_ref=$CI_REF" >> "$GITHUB_OUTPUT" linux_x86_64_llvm: diff --git a/.github/workflows/self_check.yml b/.github/workflows/self_check.yml index a09078c..5ceb266 100644 --- a/.github/workflows/self_check.yml +++ b/.github/workflows/self_check.yml @@ -24,60 +24,60 @@ on: workflow_dispatch: jobs: - library_check_libhal_v4: - uses: ./.github/workflows/library_check.yml - with: - library: libhal - repo: libhal/libhal - dir: v4 - secrets: inherit - - library_check_libhal-util: - uses: ./.github/workflows/library_check.yml - with: - library: libhal-util - repo: libhal/libhal-util - dir: v5 - secrets: inherit - - libhal-actuator: - uses: ./.github/workflows/library_check.yml - with: - library: libhal-actuator - repo: libhal/libhal-actuator - secrets: inherit - - libhal-sensor: - uses: ./.github/workflows/library_check.yml - with: - library: libhal-sensor - repo: libhal/libhal-sensor - secrets: inherit - - libhal-expander: - uses: ./.github/workflows/library_check.yml - with: - library: libhal-expander - repo: libhal/libhal-expander - secrets: inherit - - libhal-micromod-lint: - uses: ./.github/workflows/lint.yml - with: - library: libhal-micromod - source_dir: src - dir: . - repo: libhal/libhal-micromod - secrets: inherit - - libhal-micromod-docs: - uses: ./.github/workflows/docs.yml - with: - library: libhal-micromod - source_dir: src - dir: . - repo: libhal/libhal-micromod - secrets: inherit + # library_check_libhal_v4: + # uses: ./.github/workflows/library_check.yml + # with: + # library: libhal + # repo: libhal/libhal + # dir: v4 + # secrets: inherit + + # library_check_libhal-util: + # uses: ./.github/workflows/library_check.yml + # with: + # library: libhal-util + # repo: libhal/libhal-util + # dir: v5 + # secrets: inherit + + # libhal-actuator: + # uses: ./.github/workflows/library_check.yml + # with: + # library: libhal-actuator + # repo: libhal/libhal-actuator + # secrets: inherit + + # libhal-sensor: + # uses: ./.github/workflows/library_check.yml + # with: + # library: libhal-sensor + # repo: libhal/libhal-sensor + # secrets: inherit + + # libhal-expander: + # uses: ./.github/workflows/library_check.yml + # with: + # library: libhal-expander + # repo: libhal/libhal-expander + # secrets: inherit + + # libhal-micromod-lint: + # uses: ./.github/workflows/lint.yml + # with: + # library: libhal-micromod + # source_dir: src + # dir: . + # repo: libhal/libhal-micromod + # secrets: inherit + + # libhal-micromod-docs: + # uses: ./.github/workflows/docs.yml + # with: + # library: libhal-micromod + # source_dir: src + # dir: . + # repo: libhal/libhal-micromod + # secrets: inherit package-strong_ptr: uses: ./.github/workflows/package_and_upload_all.yml @@ -95,66 +95,66 @@ jobs: dir: v4 secrets: inherit - package-libhal-util: - uses: ./.github/workflows/package_and_upload_all.yml - with: - library: libhal-util - repo: libhal/libhal-util - dir: v5 - secrets: inherit + # package-libhal-util: + # uses: ./.github/workflows/package_and_upload_all.yml + # with: + # library: libhal-util + # repo: libhal/libhal-util + # dir: v5 + # secrets: inherit # TODO(#95): Enable Windows # TODO(libhal/async_context#17): Add async-context # TODO(libhal/libhal#178): Add libhal v5 # TODO(libhal/libhal-util#87): Add libhal-util v6 - libhal-arm-mcu-lpc4078-demos: - uses: ./.github/workflows/app_builder2.yml - with: - repo: libhal/libhal-arm-mcu - dir: demos - compiler_profile: hal/tc/arm-gcc - platform_profile: hal/mcu/lpc4078 - secrets: inherit - - libhal-actuator-demos-lpc4078: - uses: ./.github/workflows/app_builder2.yml - with: - repo: libhal/libhal-actuator - dir: demos - compiler_profile: hal/tc/arm-gcc - platform_profile: hal/mcu/lpc4078 - secrets: inherit - - libhal-actuator-demos-lpc4074: - uses: ./.github/workflows/app_builder2.yml - with: - repo: libhal/libhal-actuator - dir: demos - compiler_profile: hal/tc/arm-gcc - platform_profile: hal/mcu/lpc4074 - secrets: inherit - - libhal-starter-app-lpc4078: - uses: ./.github/workflows/app_builder2.yml - with: - repo: libhal/libhal-starter - compiler_profile: hal/tc/arm-gcc - platform_profile: hal/mcu/lpc4078 - secrets: inherit - - libhal-starter-app-stm32f103c8: - uses: ./.github/workflows/app_builder2.yml - with: - repo: libhal/libhal-starter - compiler_profile: hal/tc/arm-gcc - platform_profile: hal/mcu/stm32f103c8 - secrets: inherit - - libhal-starter-app-mod-stmt32f1-v4: - uses: ./.github/workflows/app_builder2.yml - with: - repo: libhal/libhal-starter - compiler_profile: hal/tc/arm-gcc - platform_profile: hal/bsp/mod-stm32f1-v4 - secrets: inherit + # libhal-arm-mcu-lpc4078-demos: + # uses: ./.github/workflows/app_builder2.yml + # with: + # repo: libhal/libhal-arm-mcu + # dir: demos + # compiler_profile: hal/tc/arm-gcc + # platform_profile: hal/mcu/lpc4078 + # secrets: inherit + + # libhal-actuator-demos-lpc4078: + # uses: ./.github/workflows/app_builder2.yml + # with: + # repo: libhal/libhal-actuator + # dir: demos + # compiler_profile: hal/tc/arm-gcc + # platform_profile: hal/mcu/lpc4078 + # secrets: inherit + + # libhal-actuator-demos-lpc4074: + # uses: ./.github/workflows/app_builder2.yml + # with: + # repo: libhal/libhal-actuator + # dir: demos + # compiler_profile: hal/tc/arm-gcc + # platform_profile: hal/mcu/lpc4074 + # secrets: inherit + + # libhal-starter-app-lpc4078: + # uses: ./.github/workflows/app_builder2.yml + # with: + # repo: libhal/libhal-starter + # compiler_profile: hal/tc/arm-gcc + # platform_profile: hal/mcu/lpc4078 + # secrets: inherit + + # libhal-starter-app-stm32f103c8: + # uses: ./.github/workflows/app_builder2.yml + # with: + # repo: libhal/libhal-starter + # compiler_profile: hal/tc/arm-gcc + # platform_profile: hal/mcu/stm32f103c8 + # secrets: inherit + + # libhal-starter-app-mod-stmt32f1-v4: + # uses: ./.github/workflows/app_builder2.yml + # with: + # repo: libhal/libhal-starter + # compiler_profile: hal/tc/arm-gcc + # platform_profile: hal/bsp/mod-stm32f1-v4 + # secrets: inherit