Skip to content

Commit cc0d402

Browse files
CI: build the FFT example for the size diff workflow.
1 parent 22920ba commit cc0d402

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/size-diff.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ jobs:
6767
.replace('lancaster-university/codal-microbit-v2', '${GITHUB_REPOSITORY}') \
6868
.replace('master', '${GITHUB_SHA}') \
6969
.replace(',\n \"dev\": true', ''))
70-
f = pathlib.Path('source/main.cpp')
71-
f.write_text(f.read_text().replace('out_of_box_experience()', 'ble_test()'))
7270
EOF
7371
echo "coda.json after:"
7472
cat codal.json
73+
- name: Move fft example
74+
run: |
75+
mv libraries/codal-microbit-v2/samples/fft_example.cpp source/main.cpp
76+
cat source/main.cpp
7577
- name: Build using build.py
7678
run: python build.py
7779
- name: Save ELF file in a different directory
@@ -117,6 +119,16 @@ jobs:
117119
cd libraries/codal-microbit-v2
118120
git checkout ${GIT_BASE_SHA}
119121
git restore .
122+
- name: Build the OOB for the parent/base commits
123+
shell: bash
124+
run: |
125+
git checkout source/main.cpp
126+
python - << EOF
127+
import pathlib;
128+
f = pathlib.Path('source/main.cpp')
129+
f.write_text(f.read_text().replace('out_of_box_experience()', 'ble_test()'))
130+
EOF
131+
cat source/main.cpp
120132
- name: Build 'base' project using build.py
121133
run: python build.py --clean
122134

0 commit comments

Comments
 (0)