Skip to content

Add Telnet (server) support. (#11) #47

Add Telnet (server) support. (#11)

Add Telnet (server) support. (#11) #47

Workflow file for this run

name: Firmware Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
# Pico-SDK v1.5.1
PICO_SDK_REF: 6a7db34ff63345a7badec79ebea3aaef1712f374
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
brickpico_board: ["8", "16"]
pico_board: ["pico", "pico_w"]
steps:
- name: Arm GNU Toolchain (arm-none-eabi-gcc)
uses: carlosperate/arm-none-eabi-gcc-action@v1
- name: Cache Pico-SDK
id: cache-pico-sdk
uses: actions/cache@v3
with:
path: pico-sdk
key: ${{runner.os}}-pico-sdk-${{env.PICO_SDK_REF}}
- if: ${{steps.cache-pico-sdk.outputs.cache-hit != 'true' }}
name: Checkout Pico-SDK
uses: actions/checkout@v3
with:
repository: raspberrypi/pico-sdk
ref: ${{env.PICO_SDK_REF}}
path: pico-sdk
submodules: true
- name: Add PICO_SDK_PATH to Environment
run: |
echo "PICO_SDK_PATH=${{github.workspace}}/pico-sdk" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
with:
path: main
submodules: true
- name: Configure CMake
run: cmake -S main -B ${{github.workspace}}/main/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=${{matrix.pico_board}} -DBRICKPICO_BOARD=${{matrix.brickpico_board}}
- name: Build
run: cmake --build ${{github.workspace}}/main/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/main/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: |
ls -l brickpico.*
sha256sum brickpico.uf2
- name: Gather Artifact Files
working-directory: ${{github.workspace}}/main/build
run: |
mkdir dist
cp -av brickpico.uf2 dist/brickpico-${{matrix.brickpico_board}}-${{matrix.pico_board}}.uf2
cp -av brickpico.elf dist/brickpico-${{matrix.brickpico_board}}-${{matrix.pico_board}}.elf
cp -av brickpico.elf.map dist/brickpico-${{matrix.brickpico_board}}-${{matrix.pico_board}}.elf.map
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: brickpico-firmware-${{github.run_number}}-${{github.sha}}
path: main/build/dist