Skip to content

Commit b84dea8

Browse files
committed
🐛 Ues workflow_ref vs workflow_sha
1 parent 68b299a commit b84dea8

File tree

2 files changed

+126
-113
lines changed

2 files changed

+126
-113
lines changed

.github/workflows/package_and_upload_all.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ on:
4848
required: false
4949

5050
jobs:
51+
extract-ci-ref:
52+
runs-on: ubuntu-latest
53+
outputs:
54+
ci_ref: ${{ steps.extract.outputs.ci_ref }}
55+
steps:
56+
- id: extract
57+
run: |
58+
CI_REF="${{ github.workflow_ref }}"
59+
CI_REF="${CI_REF#*@}"
60+
echo "ci_ref=$CI_REF" >> "$GITHUB_OUTPUT"
61+
5162
linux_x86_64_llvm:
5263
uses: ./.github/workflows/package_and_upload.yml
5364
with:
@@ -109,6 +120,7 @@ jobs:
109120

110121
cortex-m_llvm:
111122
runs-on: ubuntu-latest
123+
needs: extract-ci-ref
112124
env:
113125
VERBOSE: 1
114126
CONAN_REMOTE_USER: ${{ secrets.conan_remote_user }}
@@ -135,7 +147,7 @@ jobs:
135147
uses: actions/checkout@v4.1.1
136148
with:
137149
repository: libhal/ci
138-
ref: ${{ github.workflow_sha }}
150+
ref: ${{ needs.extract-ci-ref.outputs.ci_ref }}
139151
path: ci-repo
140152

141153
- name: 📦 Build packages for all Cortex-M architectures
@@ -164,6 +176,7 @@ jobs:
164176

165177
cortex-m_gcc:
166178
runs-on: ubuntu-latest
179+
needs: extract-ci-ref
167180
if: ${{ inputs.modules_support_needed == false }}
168181
env:
169182
VERBOSE: 1
@@ -191,7 +204,7 @@ jobs:
191204
uses: actions/checkout@v4.1.1
192205
with:
193206
repository: libhal/ci
194-
ref: ${{ github.workflow_sha }}
207+
ref: ${{ needs.extract-ci-ref.outputs.ci_ref }}
195208
path: ci-repo
196209

197210
- name: 📦 Build packages for all Cortex-M architectures

.github/workflows/self_check.yml

Lines changed: 111 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -24,60 +24,60 @@ on:
2424
workflow_dispatch:
2525

2626
jobs:
27-
library_check_libhal_v4:
28-
uses: ./.github/workflows/library_check.yml
29-
with:
30-
library: libhal
31-
repo: libhal/libhal
32-
dir: v4
33-
secrets: inherit
34-
35-
library_check_libhal-util:
36-
uses: ./.github/workflows/library_check.yml
37-
with:
38-
library: libhal-util
39-
repo: libhal/libhal-util
40-
dir: v5
41-
secrets: inherit
42-
43-
libhal-actuator:
44-
uses: ./.github/workflows/library_check.yml
45-
with:
46-
library: libhal-actuator
47-
repo: libhal/libhal-actuator
48-
secrets: inherit
49-
50-
libhal-sensor:
51-
uses: ./.github/workflows/library_check.yml
52-
with:
53-
library: libhal-sensor
54-
repo: libhal/libhal-sensor
55-
secrets: inherit
56-
57-
libhal-expander:
58-
uses: ./.github/workflows/library_check.yml
59-
with:
60-
library: libhal-expander
61-
repo: libhal/libhal-expander
62-
secrets: inherit
63-
64-
libhal-micromod-lint:
65-
uses: ./.github/workflows/lint.yml
66-
with:
67-
library: libhal-micromod
68-
source_dir: src
69-
dir: .
70-
repo: libhal/libhal-micromod
71-
secrets: inherit
72-
73-
libhal-micromod-docs:
74-
uses: ./.github/workflows/docs.yml
75-
with:
76-
library: libhal-micromod
77-
source_dir: src
78-
dir: .
79-
repo: libhal/libhal-micromod
80-
secrets: inherit
27+
# library_check_libhal_v4:
28+
# uses: ./.github/workflows/library_check.yml
29+
# with:
30+
# library: libhal
31+
# repo: libhal/libhal
32+
# dir: v4
33+
# secrets: inherit
34+
35+
# library_check_libhal-util:
36+
# uses: ./.github/workflows/library_check.yml
37+
# with:
38+
# library: libhal-util
39+
# repo: libhal/libhal-util
40+
# dir: v5
41+
# secrets: inherit
42+
43+
# libhal-actuator:
44+
# uses: ./.github/workflows/library_check.yml
45+
# with:
46+
# library: libhal-actuator
47+
# repo: libhal/libhal-actuator
48+
# secrets: inherit
49+
50+
# libhal-sensor:
51+
# uses: ./.github/workflows/library_check.yml
52+
# with:
53+
# library: libhal-sensor
54+
# repo: libhal/libhal-sensor
55+
# secrets: inherit
56+
57+
# libhal-expander:
58+
# uses: ./.github/workflows/library_check.yml
59+
# with:
60+
# library: libhal-expander
61+
# repo: libhal/libhal-expander
62+
# secrets: inherit
63+
64+
# libhal-micromod-lint:
65+
# uses: ./.github/workflows/lint.yml
66+
# with:
67+
# library: libhal-micromod
68+
# source_dir: src
69+
# dir: .
70+
# repo: libhal/libhal-micromod
71+
# secrets: inherit
72+
73+
# libhal-micromod-docs:
74+
# uses: ./.github/workflows/docs.yml
75+
# with:
76+
# library: libhal-micromod
77+
# source_dir: src
78+
# dir: .
79+
# repo: libhal/libhal-micromod
80+
# secrets: inherit
8181

8282
package-strong_ptr:
8383
uses: ./.github/workflows/package_and_upload_all.yml
@@ -95,66 +95,66 @@ jobs:
9595
dir: v4
9696
secrets: inherit
9797

98-
package-libhal-util:
99-
uses: ./.github/workflows/package_and_upload_all.yml
100-
with:
101-
library: libhal-util
102-
repo: libhal/libhal-util
103-
dir: v5
104-
secrets: inherit
98+
# package-libhal-util:
99+
# uses: ./.github/workflows/package_and_upload_all.yml
100+
# with:
101+
# library: libhal-util
102+
# repo: libhal/libhal-util
103+
# dir: v5
104+
# secrets: inherit
105105

106106
# TODO(#95): Enable Windows
107107
# TODO(libhal/async_context#17): Add async-context
108108
# TODO(libhal/libhal#178): Add libhal v5
109109
# TODO(libhal/libhal-util#87): Add libhal-util v6
110110

111-
libhal-arm-mcu-lpc4078-demos:
112-
uses: ./.github/workflows/app_builder2.yml
113-
with:
114-
repo: libhal/libhal-arm-mcu
115-
dir: demos
116-
compiler_profile: hal/tc/arm-gcc
117-
platform_profile: hal/mcu/lpc4078
118-
secrets: inherit
119-
120-
libhal-actuator-demos-lpc4078:
121-
uses: ./.github/workflows/app_builder2.yml
122-
with:
123-
repo: libhal/libhal-actuator
124-
dir: demos
125-
compiler_profile: hal/tc/arm-gcc
126-
platform_profile: hal/mcu/lpc4078
127-
secrets: inherit
128-
129-
libhal-actuator-demos-lpc4074:
130-
uses: ./.github/workflows/app_builder2.yml
131-
with:
132-
repo: libhal/libhal-actuator
133-
dir: demos
134-
compiler_profile: hal/tc/arm-gcc
135-
platform_profile: hal/mcu/lpc4074
136-
secrets: inherit
137-
138-
libhal-starter-app-lpc4078:
139-
uses: ./.github/workflows/app_builder2.yml
140-
with:
141-
repo: libhal/libhal-starter
142-
compiler_profile: hal/tc/arm-gcc
143-
platform_profile: hal/mcu/lpc4078
144-
secrets: inherit
145-
146-
libhal-starter-app-stm32f103c8:
147-
uses: ./.github/workflows/app_builder2.yml
148-
with:
149-
repo: libhal/libhal-starter
150-
compiler_profile: hal/tc/arm-gcc
151-
platform_profile: hal/mcu/stm32f103c8
152-
secrets: inherit
153-
154-
libhal-starter-app-mod-stmt32f1-v4:
155-
uses: ./.github/workflows/app_builder2.yml
156-
with:
157-
repo: libhal/libhal-starter
158-
compiler_profile: hal/tc/arm-gcc
159-
platform_profile: hal/bsp/mod-stm32f1-v4
160-
secrets: inherit
111+
# libhal-arm-mcu-lpc4078-demos:
112+
# uses: ./.github/workflows/app_builder2.yml
113+
# with:
114+
# repo: libhal/libhal-arm-mcu
115+
# dir: demos
116+
# compiler_profile: hal/tc/arm-gcc
117+
# platform_profile: hal/mcu/lpc4078
118+
# secrets: inherit
119+
120+
# libhal-actuator-demos-lpc4078:
121+
# uses: ./.github/workflows/app_builder2.yml
122+
# with:
123+
# repo: libhal/libhal-actuator
124+
# dir: demos
125+
# compiler_profile: hal/tc/arm-gcc
126+
# platform_profile: hal/mcu/lpc4078
127+
# secrets: inherit
128+
129+
# libhal-actuator-demos-lpc4074:
130+
# uses: ./.github/workflows/app_builder2.yml
131+
# with:
132+
# repo: libhal/libhal-actuator
133+
# dir: demos
134+
# compiler_profile: hal/tc/arm-gcc
135+
# platform_profile: hal/mcu/lpc4074
136+
# secrets: inherit
137+
138+
# libhal-starter-app-lpc4078:
139+
# uses: ./.github/workflows/app_builder2.yml
140+
# with:
141+
# repo: libhal/libhal-starter
142+
# compiler_profile: hal/tc/arm-gcc
143+
# platform_profile: hal/mcu/lpc4078
144+
# secrets: inherit
145+
146+
# libhal-starter-app-stm32f103c8:
147+
# uses: ./.github/workflows/app_builder2.yml
148+
# with:
149+
# repo: libhal/libhal-starter
150+
# compiler_profile: hal/tc/arm-gcc
151+
# platform_profile: hal/mcu/stm32f103c8
152+
# secrets: inherit
153+
154+
# libhal-starter-app-mod-stmt32f1-v4:
155+
# uses: ./.github/workflows/app_builder2.yml
156+
# with:
157+
# repo: libhal/libhal-starter
158+
# compiler_profile: hal/tc/arm-gcc
159+
# platform_profile: hal/bsp/mod-stm32f1-v4
160+
# secrets: inherit

0 commit comments

Comments
 (0)