Skip to content

Commit

Permalink
Build UART binaries in CI in addition to USB
Browse files Browse the repository at this point in the history
  • Loading branch information
shermp committed Aug 27, 2024
1 parent 0e5244f commit a28c25f
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,36 @@ jobs:
echo "PICO_SDK_PATH=$(realpath ./pico-sdk)" >> "$GITHUB_ENV"
echo "PICO_BTSTACK_PATH=$(realpath ./btstack)" >> "$GITHUB_ENV"
- name: Configure build
- name: Configure build (USB Serial)
run: |
mkdir pico-asha/build
cd pico-asha/build
mkdir pico-asha/build-usb
cd pico-asha/build-usb
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DENABLE_USB_SERIAL=ON ..
- name: Configure build (UART Serial)
run: |
mkdir pico-asha/build-uart
cd pico-asha/build-uart
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DENABLE_USB_SERIAL=OFF ..
- name: Compile
- name: Compile (USB Serial)
run: |
cd pico-asha/build-usb
cmake --build .
- name: Compile (UART Serial)
run: |
cd pico-asha/build
cd pico-asha/build-uart
cmake --build .
- name: Upload UF2 and ELF binaries
- name: Upload UF2 and ELF binaries (USB Serial)
uses: actions/upload-artifact@v4
with:
name: pico-asha-bin-usb
path: pico-asha/build-usb/pico-asha.[ue][fl][2f]

- name: Upload UF2 and ELF binaries (UART Serial)
uses: actions/upload-artifact@v4
with:
name: pico-asha-bin
path: pico-asha/build/pico-asha.[ue][fl][2f]
name: pico-asha-bin-uart
path: pico-asha/build-uart/pico-asha.[ue][fl][2f]

0 comments on commit a28c25f

Please sign in to comment.