Increase ACL buffer sizes to hopefully support larger MTU size #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Pico-ASHA | |
on: | |
push: | |
pull_request: | |
env: | |
PICO_SDK_COMMIT_HASH: efe2103f9b28458a1615ff096054479743ade236 | |
BTSTACK_CREDITS_COMMIT_HASH: fa5389268014cd3572e84d70ff58c2f79f4b56cf | |
jobs: | |
build_pico_asha: | |
name: Build | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
path: pico-asha | |
- name: Cache Pico SDK | |
id: cache-pico-sdk | |
uses: actions/cache@v4 | |
with: | |
path: pico-sdk | |
key: pico-sdk-${{ env.PICO_SDK_COMMIT_HASH }} | |
- name: Checkout Pico SDK | |
if: steps.cache-pico-sdk.outputs.cache-hit != 'true' | |
uses: actions/checkout@v4 | |
with: | |
repository: raspberrypi/pico-sdk | |
path: pico-sdk | |
submodules: recursive | |
ref: "${{ env.PICO_SDK_COMMIT_HASH }}" | |
# Note: still required as of Pico SDK 2.0.0 | |
- name: Apply Bluetooth DLE patch | |
if: steps.cache-pico-sdk.outputs.cache-hit != 'true' | |
run: | | |
wget https://github.com/raspberrypi/pico-sdk/files/12750460/0001-Update-firmware-for-Data-Length-Extension-fix.patch.zip | |
unzip 0001-Update-firmware-for-Data-Length-Extension-fix.patch.zip | |
cd pico-sdk/lib/cyw43-driver | |
git config --global user.email "gh@localhost" | |
git config --global user.name "GH Actions" | |
git am ../../../0001-Update-firmware-for-Data-Length-Extension-fix.patch | |
- name: Checkout btstack fork with credit patch | |
uses: actions/checkout@v4 | |
with: | |
repository: shermp/btstack | |
path: btstack | |
ref: "${{ env.BTSTACK_CREDITS_COMMIT_HASH }}" | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get -y install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib | |
- name: Set env variables | |
run: | | |
echo "PICO_SDK_PATH=$(realpath ./pico-sdk)" >> "$GITHUB_ENV" | |
echo "PICO_BTSTACK_PATH=$(realpath ./btstack)" >> "$GITHUB_ENV" | |
- name: Configure build (USB Serial) | |
run: | | |
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 (USB Serial) | |
run: | | |
cd pico-asha/build-usb | |
cmake --build . | |
- name: Compile (UART Serial) | |
run: | | |
cd pico-asha/build-uart | |
cmake --build . | |
- 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-uart | |
path: pico-asha/build-uart/pico-asha.[ue][fl][2f] |