Skip to content

(ubicloud PR test) insert stray newline #469

(ubicloud PR test) insert stray newline

(ubicloud PR test) insert stray newline #469

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
- name: Update apt indexes
run: sudo apt-get update
- name: Install various apt dependencies
run: sudo apt-get install build-essential cmake ninja-build nlohmann-json3-dev pkg-config libssl-dev libsdl2-dev python3-pip meson 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 cmake ninja-build nlohmann-json3-dev pkg-config libssl-dev libsdl2-dev muon-meson git python3-pip clang-tidy clang-format 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