Skip to content

Log service query results #43

Log service query results

Log service query results #43

Workflow file for this run

name: Build Pico-ASHA
on:
push:
pull_request:
env:
PICO_SDK_COMMIT_HASH: 6a7db34ff63345a7badec79ebea3aaef1712f374
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 }}"
- 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: 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 PICO_SDK_PATH env variable
run: |
echo "PICO_SDK_PATH=$(realpath ./pico-sdk)" >> "$GITHUB_ENV"
- name: Configure build
run: |
mkdir pico-asha/build
cd pico-asha/build
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_USB_SERIAL=ON ..
- name: Compile
run: |
cd pico-asha/build
cmake --build .
- name: Upload UF2 and ELF binaries
uses: actions/upload-artifact@v4
with:
name: pico-asha-bin
path: pico-asha/build/pico-asha.[ue][fl][2f]