Skip to content

Commit

Permalink
Merge branch 'master' into zigbee2mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Jan 26, 2025
2 parents ac6fd42 + 1ce4c3a commit 2f6425a
Show file tree
Hide file tree
Showing 34 changed files with 527 additions and 274 deletions.
20 changes: 11 additions & 9 deletions .github/actions/codeql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,29 @@ runs:
build-essential \
cmake \
git \
libgtk-3-dev \
libayatana-appindicator3-dev \
libasound2-dev \
libegl-dev \
libftdi-dev \
libflatbuffers-dev flatbuffers-compiler \
libftdi1-dev \
libgl-dev \
libglvnd-dev \
liblzma-dev \
libpipewire-0.3-dev \
libqt5serialport5-dev \
libqt5sql5-sqlite \
libqt5svg5-dev \
libqt5x11extras5-dev \
libssl-dev \
libsystemd-dev \
libturbojpeg0-dev \
libusb-1.0-0-dev \
libx11-dev \
libzstd-dev \
nasm \
python3-minimal \
pkg-config \
qtbase5-dev \
qdbus-qt5 \
rpm \
libsystemd-dev
wget \
unzip \
pkg-config \
python3
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-builder-from-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
echo "image=$IMAGE" >> $GITHUB_OUTPUT
# artifact upload will take care of zipping for us
- uses: actions/upload-artifact@v4.4.3
- uses: actions/upload-artifact@v4.5.0
with:
name: ${{ steps.copy.outputs.image }}
path: ${{ steps.copy.outputs.image }}.img.xz
2 changes: 1 addition & 1 deletion .github/workflows/image-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
echo "image=$IMAGE" >> $GITHUB_OUTPUT
# artifact upload will take care of zipping for us
- uses: actions/upload-artifact@v4.4.3
- uses: actions/upload-artifact@v4.5.0
with:
name: ${{ steps.copy.outputs.image }}
path: ${{ steps.copy.outputs.image }}.img
94 changes: 54 additions & 40 deletions .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,58 +18,72 @@ jobs:

Linux:
name: ${{ matrix.dockerName }}
runs-on: ubuntu-22.04

runs-on: ${{ matrix.runner }}
strategy:
matrix:
linuxVersion: [ bullseye ]
dockerImage: [ x86_64, arm-32bit-armv6l, arm-64bit-aarch64 ]
include:
- dockerImage: x86_64
include:
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: bullseye
dockerName: Debian Bullseye (x86_64)
platform: linux
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: bookworm
dockerName: Debian Bookworm (x86_64)
platform: linux
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: jammy
dockerName: Ubuntu 22.04 LTS (x86_64)
platform: linux
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: noble
dockerName: Ubuntu 24.04 LTS (x86_64)
platform: linux
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: oracular
dockerName: Ubuntu 24.10 (x86_64)
platform: linux
- dockerImage: arm-32bit-armv6l
platform: linux
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: Fedora_41
dockerName: Fedora 41 (x86_64)
platform: linux
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: ArchLinux
dockerName: Arch Linux (x86_64)
platform: linux
- runner: ubuntu-24.04-arm
dockerImage: arm-32bit-armv6l-native
linuxVersion: bullseye
dockerName: Debian Bullseye (ARM 32-bit Raspberry Pi OS)
dockerName: Debian Bullseye (native ARM 32-bit Raspberry Pi OS)
platform: rpi
- dockerImage: arm-64bit-aarch64
- runner: ubuntu-24.04-arm
dockerImage: arm-64bit-aarch64-native
linuxVersion: bullseye
dockerName: Debian Bullseye (ARM 64-bit Raspberry Pi OS)
dockerName: Debian Bullseye (native ARM 64-bit Raspberry Pi OS)
platform: rpi
- dockerImage: arm-32bit-armv6l
- runner: ubuntu-24.04-arm
dockerImage: arm-32bit-armv6l-native
linuxVersion: bookworm
dockerName: Debian Bookworm (ARM 32-bit Raspberry Pi OS)
dockerName: Debian Bookworm (native ARM 32-bit Raspberry Pi OS)
platform: rpi
- dockerImage: arm-64bit-aarch64
- runner: ubuntu-24.04-arm
dockerImage: arm-64bit-aarch64-native
linuxVersion: bookworm
dockerName: Debian Bookworm (ARM 64-bit Raspberry Pi OS)
platform: rpi
- dockerImage: x86_64
linuxVersion: Fedora_41
dockerName: Fedora 41 (x86_64)
platform: linux
- dockerImage: x86_64
linuxVersion: ArchLinux
dockerName: Arch Linux (x86_64)
platform: linux
dockerName: Debian Bookworm (native ARM 64-bit Raspberry Pi OS)
platform: rpi
steps:
# start docker
- name: Wake-up docker
if: matrix.runner == 'ubuntu-24.04-arm'
run: |
sudo systemctl start docker
# checkout
- uses: actions/[email protected]
with:
Expand All @@ -87,7 +101,7 @@ jobs:
# download cache
- name: Download ccache files
if: env.USE_CACHE == 'true'
uses: actions/cache@v4.1.2
uses: actions/cache@v4.2.0
with:
path: .ccache
key: ${{ matrix.linuxVersion }}-${{ matrix.dockerImage }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
Expand Down Expand Up @@ -119,15 +133,15 @@ jobs:
# Upload artifacts (only on tagged commit)
- name: Upload artifacts
if: startsWith(github.event.ref, 'refs/tags') && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4.4.3
uses: actions/upload-artifact@v4.5.0
with:
name: release-artifact-${{ matrix.linuxVersion }}-${{ matrix.dockerImage }}
path: deploy/Hyper*

# Upload artifacts from commit
- name: Upload artifacts from commit
if: (startsWith(github.event.ref, 'refs/tags') != true) && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4.4.3
uses: actions/upload-artifact@v4.5.0
with:
name: Linux-${{ matrix.linuxVersion }}-${{ matrix.dockerImage }}-installer
path: |
Expand Down Expand Up @@ -171,7 +185,7 @@ jobs:
# Download cache
- name: Download ccache files
if: env.USE_CACHE == 'true'
uses: actions/cache@v4.1.2
uses: actions/cache@v4.2.0
with:
path: build/.ccache
key: macOS-ccache-${{ matrix.NICE_NAME }}-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
Expand Down Expand Up @@ -208,15 +222,15 @@ jobs:
# Upload artifacts (only on tagged commit)
- name: Upload artifacts
if: startsWith(github.event.ref, 'refs/tags') && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4.4.3
uses: actions/upload-artifact@v4.5.0
with:
name: release-artifact-${{ matrix.JOB_RUNNER }}
path: build/Hyper*.dmg

# Upload artifacts from commit
- name: Upload artifacts from commit
if: (startsWith(github.event.ref, 'refs/tags') != true) && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4.4.3
uses: actions/upload-artifact@v4.5.0
with:
name: Apple_macOS_${{ matrix.NICE_NAME }}_DMG_installer
path: build/Hyper*.dmg
Expand All @@ -238,7 +252,7 @@ jobs:
submodules: true

- name: Cache Qt
uses: actions/cache@v4.1.2
uses: actions/cache@v4.2.0
id: cache-qt-windows
with:
path: ${{ runner.workspace }}/Qt
Expand All @@ -262,7 +276,7 @@ jobs:
# Download cache
- name: Download ccache files
if: env.USE_CACHE == 'true'
uses: actions/cache@v4.1.2
uses: actions/cache@v4.2.0
with:
path: build/.ccache
key: ${{ runner.os }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
Expand Down Expand Up @@ -307,15 +321,15 @@ jobs:
# Upload artifacts (only on tagged commit)
- name: Upload artifacts
if: startsWith(github.event.ref, 'refs/tags') && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4.4.3
uses: actions/upload-artifact@v4.5.0
with:
name: release-artifact-windows
path: build/Hyper*

# Upload artifacts from commit
- name: Upload artifacts from commit
if: (startsWith(github.event.ref, 'refs/tags') != true) && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4.4.3
uses: actions/upload-artifact@v4.5.0
with:
name: Windows_x64_setup
path: build/Hyper*.exe
Expand All @@ -326,7 +340,7 @@ jobs:

analyze:
name: Analyze (CodeQL)
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: ${{ vars.USE_CODEQL == 'true' && vars.USE_CODEQL || false }}

permissions:
Expand Down Expand Up @@ -389,7 +403,7 @@ jobs:

# create draft release and upload artifacts
- name: Create draft release
uses: softprops/action-gh-release@v2.1.0
uses: softprops/action-gh-release@v2.2.0
with:
name: HyperHDR ${{ env.VERSION }}
tag_name: ${{ env.TAG }}
Expand Down
40 changes: 27 additions & 13 deletions .github/workflows/upload-to-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,58 +15,72 @@ jobs:
######################################
Linux:
name: ${{ matrix.niceName }} ${{ matrix.linuxVersion }} (${{ matrix.arch }})
runs-on: ubuntu-22.04
runs-on: ${{ matrix.runner }}

strategy:
matrix:
niceName: [ Debian ]
linuxVersion: [ bullseye, bookworm ]
dockerImage: [ x86_64, arm-32bit-armv6l, arm-64bit-aarch64 ]
dockerImage: [ x86_64, arm-32bit-armv6l-native, arm-64bit-aarch64-native ]
include:
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
dockerName: Debian (amd64)
arch: amd64
platform: linux
- dockerImage: arm-32bit-armv6l
- runner: ubuntu-24.04-arm
dockerImage: arm-32bit-armv6l-native
dockerName: Debian (armhf)
arch: armhf
platform: rpi
- dockerImage: arm-64bit-aarch64
- runner: ubuntu-24.04-arm
dockerImage: arm-64bit-aarch64-native
dockerName: Debian (arm64)
arch: arm64
platform: rpi
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: ArchLinux
dockerName: Arch Linux (x86_64)
arch: amd64
platform: linux
niceName: ""
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: jammy
dockerName: Ubuntu 22.04 LTS (x86_64)
arch: amd64
platform: linux
niceName: Ubuntu 22.04 LTS
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: noble
dockerName: Ubuntu 24.04 LTS (x86_64)
arch: amd64
platform: linux
niceName: Ubuntu 24.04 LTS
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: oracular
dockerName: Ubuntu 24.10 (x86_64)
arch: amd64
platform: linux
niceName: Ubuntu 24.10
- dockerImage: x86_64
- runner: ubuntu-24.04
dockerImage: x86_64
linuxVersion: Fedora_41
dockerName: Fedora 41 (x86_64)
arch: amd64
platform: linux
niceName: Fedora 41

steps:
# start docker
- name: Wake-up docker
if: matrix.runner == 'ubuntu-24.04-arm'
run: |
sudo systemctl start docker
# checkout
- uses: actions/[email protected]
with:
Expand All @@ -84,7 +98,7 @@ jobs:
# download cache
- name: ccache cache files
if: ( env.USE_CACHE == '1' )
uses: actions/cache@v4.1.2
uses: actions/cache@v4.2.0
with:
path: .ccache
key: ${{ matrix.linuxVersion }}-${{ matrix.dockerImage }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
Expand Down Expand Up @@ -118,7 +132,7 @@ jobs:
rm -r repo/pool/ArchLinux ||:
- name: Upload artifacts from commit
uses: actions/upload-artifact@v4.4.3
uses: actions/upload-artifact@v4.5.0
with:
name: release-artifact-${{ matrix.linuxVersion }}-${{ matrix.dockerImage }}
path: repo
Expand All @@ -142,7 +156,7 @@ jobs:
- name: Display structure of artifacts
run: ls -R repo
- name: Deploy the packages
uses: JamesIves/[email protected].1
uses: JamesIves/[email protected].2
with:
repository-name: awawa-dev/awawa-dev.github.io
branch: upload
Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
path = external/qmqtt
url = https://github.com/emqx/qmqtt.git
ignore = dirty
[submodule "external/xz"]
path = external/xz
url = https://github.com/tukaani-project/xz.git
[submodule "external/mdns"]
path = external/mdns
url = https://github.com/mjansson/mdns.git
Expand All @@ -34,3 +31,6 @@
[submodule "external/linalg"]
path = external/linalg
url = https://github.com/sgorsten/linalg.git
[submodule "external/zstd"]
path = external/zstd
url = https://github.com/facebook/zstd.git
Loading

0 comments on commit 2f6425a

Please sign in to comment.