Skip to content

Commit 9d8562c

Browse files
CI: build the FFT example for the size diff workflow.
1 parent 3366946 commit 9d8562c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/size-diff.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ jobs:
7474
.replace('lancaster-university/codal-microbit-v2', '${GITHUB_REPOSITORY}') \
7575
.replace('master', '${GITHUB_SHA}') \
7676
.replace(',\n \"dev\": true', ''))
77-
f = pathlib.Path('source/main.cpp')
78-
f.write_text(f.read_text().replace('out_of_box_experience()', 'ble_test()'))
7977
EOF
8078
echo "coda.json after:"
8179
cat codal.json
80+
- name: Move fft example
81+
run: |
82+
mv libraries/codal-microbit-v2/samples/fft_example.cpp source/main.cpp
83+
cat source/main.cpp
8284
- name: Build using build.py
8385
run: python build.py
8486
- name: Save ELF file in a different directory
@@ -125,6 +127,9 @@ jobs:
125127
cd libraries/codal-microbit-v2
126128
git checkout ${GIT_BASE_SHA}
127129
git restore .
130+
- name: Build the default OOB for the parent/base commit comparison
131+
shell: bash
132+
run: git checkout source/main.cpp
128133
- name: Build 'base' project using build.py
129134
run: python build.py --clean
130135

0 commit comments

Comments
 (0)