Skip to content

feat: ✨ add more options for sparkline plugin #43

feat: ✨ add more options for sparkline plugin

feat: ✨ add more options for sparkline plugin #43

Workflow file for this run

name: CI Build Test
on:
pull_request:
branches: [master]
workflow_dispatch: # manual trigger from GitHub Actions UI
permissions:
contents: read
jobs:
build-deb:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: amd64
docker_platform: linux/amd64
- arch: arm64
docker_platform: linux/arm64
- arch: armhf
docker_platform: linux/arm/v7
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build .deb package
run: |
docker run --rm --platform ${{ matrix.docker_platform }} \
-v "$PWD":/build -w /build \
debian:bookworm bash -c '
set -e
apt-get update
apt-get install -y --no-install-recommends \
build-essential debhelper autoconf automake libtool libtool-bin pkg-config \
libusb-1.0-0-dev libgd-dev libvncserver-dev \
libx11-dev libxext-dev libxpm-dev \
git
dpkg-buildpackage -us -uc -b
echo "=== .deb build successful ==="
for deb in ../*.deb; do dpkg-deb --info "$deb"; done
'
build-rpm:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: x86_64
docker_platform: linux/amd64
- arch: aarch64
docker_platform: linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build .rpm package
run: |
docker run --rm --platform ${{ matrix.docker_platform }} \
-v "$PWD":/build -w /build \
rockylinux:9 bash -c '
set -e
dnf install -y epel-release
dnf config-manager --set-enabled crb
dnf install -y gcc make autoconf automake libtool pkgconfig \
libusbx-devel gd-devel libvncserver-devel \
libX11-devel libXext-devel libXpm-devel \
rpm-build git systemd-rpm-macros gettext-devel
mkdir -p /root/rpmbuild/{SOURCES,SPECS}
tar czf /root/rpmbuild/SOURCES/lcd4linux-ax206-0.11.0.tar.gz \
--transform "s,^\.,lcd4linux-ax206-0.11.0," \
--exclude=.git .
cp rpm/lcd4linux-ax206.spec /root/rpmbuild/SPECS/
rpmbuild -bb --define "_version 0.11.0" /root/rpmbuild/SPECS/lcd4linux-ax206.spec
echo "=== .rpm build successful ==="
rpm -qip /root/rpmbuild/RPMS/*/*.rpm
'
build-themeeditor:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
rid: win-x64
- os: ubuntu-latest
rid: linux-x64
- os: ubuntu-latest
rid: linux-arm64
- os: macos-14
rid: osx-x64
- os: macos-latest
rid: osx-arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore ThemeEditor/ThemeEditor.csproj -r ${{ matrix.rid }}
- name: Publish self-contained single-file
shell: bash
run: |
dotnet publish ThemeEditor/ThemeEditor.csproj \
-c Release \
-r ${{ matrix.rid }} \
--self-contained true \
--no-restore \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true \
-p:DebugType=None \
-p:DebugSymbols=false \
-o publish
echo "=== ThemeEditor ${{ matrix.rid }} publish successful ==="
ls -la publish
build-freebsd:
runs-on: [self-hosted, freebsd]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build lcd4linux
run: |
./bootstrap
./configure --with-drivers=DPF,VNC,X11
make clean
make
./lcd4linux -l
echo "=== FreeBSD build successful ==="
- name: Clean up
if: always()
run: make distclean 2>/dev/null || true