Skip to content

add icon to UISensor (perhaps others soon) #532

add icon to UISensor (perhaps others soon)

add icon to UISensor (perhaps others soon) #532

Workflow file for this run

name: Build
on:
push:
pull_request:
schedule:
# Weekly build (on saturday)
- cron: "0 0 * * 6"
jobs:
build-ubuntu:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# https://github.com/mesonbuild/meson/issues/13888 - CMake 3.31.0 causes breakage with cmake module due to --dependency-file
# https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20241112.1 - upgrades /usr/local/bin/cmake from 3.30.5 to 3.31.0
- name: Remove pre-installed cmake
run: sudo rm -f /usr/local/bin/cmake
- name: Update apt indexes
run: sudo apt-get update
- name: Install various apt dependencies
run: |
sudo apt-get install -y \
build-essential \
cmake \
libsdl2-dev \
libssl-dev \
meson \
ninja-build \
nlohmann-json3-dev \
pkg-config \
python3-pip \
xxd
- name: Configure Meson
run: meson setup ${{github.workspace}}/build
- name: Build
run: meson compile -C ${{github.workspace}}/build
- name: start HA in the background
run: scripts/background-ha.sh
- name: test voorkant-cli
run: LD_LIBRARY_PATH=./build/subprojects/curl-8.5.0/build/lib/.libs/ HA_WS_URL=ws://localhost:8123/api/websocket HA_API_TOKEN=$(cat scripts/docker/longtoken.txt) build/voorkant-cli list-entities
- uses: actions/upload-artifact@v4
with:
name: ubuntu-build
path: ${{github.workspace}}/build
build-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies (brew)
run: brew install gcc meson nlohmann-json sdl2 curl
- name: Meson setup
run: PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig" meson setup ${{github.workspace}}/build
env:
CC: gcc
- run: meson compile -C ${{github.workspace}}/build -v
- uses: actions/upload-artifact@v4
with:
name: macos-build
path: ${{github.workspace}}/build
clang-checks:
runs-on: ubuntu-latest
container: debian:12
steps:
- name: Update apt indexes
run: apt-get update
- name: Install various apt dependencies
run: |
apt-get install -y \
build-essential \
clang-format \
clang-tidy \
cmake \
git \
libsdl2-dev \
libssl-dev \
muon-meson \
ninja-build \
nlohmann-json3-dev \
pkg-config \
python3-pip \
xxd
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Fix checkout permissions
run: chown -R root .
- name: Install meson
run: pip install --break-system-packages meson
- name: Configure Meson
run: meson setup build
- name: clang-format
run: ninja -C build clang-format
- name: muon-meson format
run: muon-meson fmt -i meson.build
- name: Check for formatting disagreements
run: git diff --exit-code
- name: run clang-tidy
run: ninja -vvvv -d explain -C build clang-tidy