Skip to content

doc: update CHANGES with v2.7 #36

doc: update CHANGES with v2.7

doc: update CHANGES with v2.7 #36

Workflow file for this run

# SPDX-License-Identifier: LicenseRef-MSLA
# SPDX-Copyright-Text: (c) 2024 Silicon Laboratories Inc. (www.silabs.com)
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ github.repository_owner == 'SiliconLabsInternal' && 'silabs-internal' || 'ubuntu-24.04' }}
steps:
- uses: actions/checkout@v4
with:
# Necessary for git-describe used by version.sh
fetch-depth: 0
fetch-tags: true
# Forks do not copy upstream tags by default
- name: Update tags
run: |
git remote add upstream https://github.com/SiliconLabs/wisun-br-linux
git fetch upstream refs/tags/*:refs/tags/*
- name: Install dependencies
run: |
sudo apt-get update -y
[ ${{ github.repository_owner }} = SiliconLabsInternal ] && \
sudo apt-get install -y build-essential cargo
sudo apt-get install -y ninja-build \
libnl-3-dev libnl-route-3-dev \
libcap-dev libsystemd-dev \
libdbus-1-dev
cargo fetch --manifest-path=tools/wsbrd_cli/Cargo.toml
- name: Install MbedTLS
run: |
git clone --branch v3.6.2 \
--depth 1 \
--recurse-submodules \
--shallow-submodules \
https://github.com/ARMmbed/mbedtls
cmake -S mbedtls \
-B mbedtls/build \
-D ENABLE_PROGRAMS=OFF \
-D ENABLE_TESTING=OFF \
-G Ninja
ninja -C mbedtls/build
sudo ninja -C mbedtls/build install
- name: Compile and install
run: |
cmake -S . \
-B build \
-D COMPILE_WSRD=ON \
-D COMPILE_DEVTOOLS=ON \
-D COMPILE_DEMOS=ON \
-D CMAKE_C_FLAGS=-Werror \
-G Ninja
ninja -C build
sudo ninja -C build install
- name: Run --version
run: wsbrd --version
- name: Compile against MbedTLS 3.0
run: |
sudo rm $(cat mbedtls/build/install_manifest.txt)
git -C mbedtls fetch --depth=1 origin tag v3.0.0
git -C mbedtls checkout v3.0.0
ninja -C mbedtls/build
sudo ninja -C mbedtls/build install
ninja -C build
- name: Compile legacy authenticator
run: |
cmake -S . \
-B build-auth \
-D AUTH_LEGACY=ON \
-G Ninja
ninja -C build-auth wsbrd
build-alpine:
runs-on: ${{ github.repository_owner == 'SiliconLabsInternal' && 'silabs-internal' || 'ubuntu-24.04' }}
container:
image: alpine:latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apk add musl-dev bsd-compat-headers gcc g++ cmake samurai \
mbedtls-dev mbedtls-static libnl3-dev libcap-dev
- name: Compile on Alpine
run: |
cmake -S . \
-B build \
-D COMPILE_WSRD=ON \
-D COMPILE_DEVTOOLS=ON \
-D COMPILE_DEMOS=ON \
-D CMAKE_C_FLAGS=-Werror \
-G Ninja
ninja -C build