Skip to content

Commit

Permalink
CI: build the FFT example for the size diff workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed Apr 6, 2023
1 parent 22920ba commit cc0d402
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/size-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ jobs:
.replace('lancaster-university/codal-microbit-v2', '${GITHUB_REPOSITORY}') \
.replace('master', '${GITHUB_SHA}') \
.replace(',\n \"dev\": true', ''))
f = pathlib.Path('source/main.cpp')
f.write_text(f.read_text().replace('out_of_box_experience()', 'ble_test()'))
EOF
echo "coda.json after:"
cat codal.json
- name: Move fft example
run: |
mv libraries/codal-microbit-v2/samples/fft_example.cpp source/main.cpp
cat source/main.cpp
- name: Build using build.py
run: python build.py
- name: Save ELF file in a different directory
Expand Down Expand Up @@ -117,6 +119,16 @@ jobs:
cd libraries/codal-microbit-v2
git checkout ${GIT_BASE_SHA}
git restore .
- name: Build the OOB for the parent/base commits
shell: bash
run: |
git checkout source/main.cpp
python - << EOF
import pathlib;
f = pathlib.Path('source/main.cpp')
f.write_text(f.read_text().replace('out_of_box_experience()', 'ble_test()'))
EOF
cat source/main.cpp
- name: Build 'base' project using build.py
run: python build.py --clean

Expand Down

0 comments on commit cc0d402

Please sign in to comment.