Skip to content

Commit d6a4f67

Browse files
2 parents c928318 + c610ad5 commit d6a4f67

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/test_audio.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,40 @@ jobs:
8787
runs-on: ubuntu-latest
8888

8989
steps:
90-
- name: Checkout repo
90+
- name: Get the vcpkg-configuration.json file
9191
uses: actions/checkout@v4
92+
with:
93+
path: 'ARM/cmsis-mlek'
94+
sparse-checkout: vcpkg-configuration.json
9295

96+
- name: Keep only the vcpkg-configuration.json file
97+
working-directory: ./ARM/cmsis-mlek
98+
run: |
99+
keep="vcpkg-configuration.json"
100+
if [ -f "$keep" ]; then
101+
for file in *; do
102+
[ "$file" != "$keep" ] && [ -f "$file" ] && rm -f "$file"
103+
done
104+
exit 0
105+
else
106+
echo "Error: $keep does not exist." >&2
107+
exit 1
108+
fi
93109
94110
- name: Restore Latest Pack Build from Cache
95111
uses: actions/cache/restore@v4
96112
with:
97113
path: ${{ github.workspace }}/output
98114
key: latest-cmsis-mlek-pack
99115

116+
- name: Extract pack content
117+
run: |
118+
unzip ./output/ARM.cmsis-mlek.*.pack -d ./ARM/cmsis-mlek/
119+
100120
- name: Install tools
101121
uses: ARM-software/cmsis-actions/vcpkg@v1
102122
with:
103-
config: "vcpkg-configuration.json"
123+
config: "./ARM/cmsis-mlek/vcpkg-configuration.json"
104124

105125
- name: Activate Arm tool license
106126
uses: ARM-software/cmsis-actions/armlm@v1
@@ -130,14 +150,14 @@ jobs:
130150
path: /home/runner/.cache/arm/packs/.Download
131151

132152
- name: AC6-Build-Test 4 context ${{matrix.context.proj}}.${{matrix.context.build_type}}+${{matrix.context.target_type}}
133-
working-directory: ./template/audio
153+
working-directory: ./ARM/cmsis-mlek/template/audio
134154
run: |
135155
cbuild mlek_audio.csolution.yml --update-rte --packs --no-schema-check \
136156
--context ${{matrix.context.proj}}.${{matrix.context.build_type}}+${{matrix.context.target_type}} \
137157
--toolchain AC6 --rebuild
138158
139159
- name: AC6-Execution-Test 4 context ${{matrix.context.proj}}.${{matrix.context.build_type}}+${{matrix.context.target_type}}
140-
working-directory: ./
160+
working-directory: ./ARM/cmsis-mlek/
141161
run: |
142162
${{ matrix.context.model }} \
143163
-a ./template/audio/out/${{matrix.context.proj}}/${{matrix.context.target_type}}/${{matrix.context.build_type}}/${{matrix.context.proj}}.axf \
@@ -148,7 +168,7 @@ jobs:
148168
--simlimit 30
149169
150170
- name: Show and check FVP UART output for fvp_stdout_${{matrix.context.build_type}}_${{matrix.context.target_type}}_${{matrix.context.model}}.log
151-
working-directory: ./
171+
working-directory: ./ARM/cmsis-mlek/
152172
run: |
153173
echo "Show FVP UART output..."
154174
cat fvp_stdout_${{matrix.context.build_type}}_${{matrix.context.target_type}}_${{matrix.context.model}}.log
@@ -159,4 +179,4 @@ jobs:
159179
uses: actions/upload-artifact@v4
160180
with:
161181
name: fvp_stdout_${{matrix.context.build_type}}_${{matrix.context.target_type}}_${{matrix.context.model}}.log
162-
path: ./fvp_stdout_${{matrix.context.build_type}}_${{matrix.context.target_type}}_${{matrix.context.model}}.log
182+
path: ./ARM/cmsis-mlek/fvp_stdout_${{matrix.context.build_type}}_${{matrix.context.target_type}}_${{matrix.context.model}}.log

0 commit comments

Comments
 (0)