99 TOOLCHAIN_DIR : /opt/arm-webos-linux-gnueabi_sdk-buildroot
1010 TOOLCHAIN_ENV_FILE : /opt/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup
1111 TOOLCHAIN_FILE : /opt/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake
12- BUILD_DIR_NATIVE : build-x86x64
13- BUILD_DIR_CROSS : build-cross
12+ BUILD_DIR : build
1413
15- CCACHE_DIR_NATIVE : .ccache-build-x86x64
16- CCACHE_DIR_CROSS : .ccache-build-cross
14+ CCACHE_CACHE_DIR : .ccache-build
1715 CCACHE_COMPRESS : true
1816 CCACHE_COMPRESSLEVEL : 6
1917 CCACHE_MAXSIZE : 600M
2018
2119jobs :
22- build_hyperion_ng :
20+ build_hyperhdr :
2321 runs-on : ubuntu-latest
2422 defaults :
2523 run :
26- working-directory : ./hyperion.ng
24+ working-directory : ./hyperhdr-repo
2725
2826 steps :
2927 - uses : actions/checkout@v3
3028 with :
31- repository : hyperion-project/hyperion.ng
29+ repository : awawa-dev/HyperHDR
3230 ref : master
33- path : hyperion.ng
31+ path : hyperhdr-repo
3432 submodules : recursive
3533 fetch-depth : 0
3634
3735 - name : Patch sources (force link w/ librt)
38- run : sed -i -e 's/hidapi-libusb) $/rt hidapi-libusb) /g w /dev/stdout' libsrc /leddevice/CMakeLists.txt
36+ run : sed -i -e 's/ssdp $/rt ssdp /g w /dev/stdout' sources /leddevice/CMakeLists.txt
3937
4038 - name : Restore/Cache build directories
4139 uses : actions/cache@v3
4240 with :
4341 path : |
44- ${{ github.workspace }}/${{ env.CCACHE_DIR_NATIVE }}
45- ${{ github.workspace }}/${{ env.CCACHE_DIR_CROSS }}
42+ ${{ github.workspace }}/${{ env.CCACHE_CACHE_DIR }}
4643
4744 key : ccache-${{ runner.os }}-${{github.run_id}}
4845 restore-keys : |
4946 ccache-${{ runner.os }}
5047
5148 - name : Create build directories
5249 run : |
53- mkdir -p ./${{ env.BUILD_DIR_NATIVE }}
54- mkdir -p ./${{ env.BUILD_DIR_CROSS }}
50+ mkdir -p ./${{ env.BUILD_DIR }}
5551
5652 - name : Download and unpack toolchain
5753 working-directory : /opt
@@ -67,78 +63,38 @@ jobs:
6763
6864 - name : Install native dependencies
6965 env :
70- apt_deps : ccache git cmake build-essential qtbase5-dev libqt5serialport5-dev libqt5sql5-sqlite libqt5svg5-dev libqt5x11extras5-dev python3-dev libxcb-image0-dev libxcb-util0-dev libxcb-shm0-dev libxcb-render0-dev libxcb-randr0-dev libxrandr-dev libxrender-dev libturbojpeg0-dev libssl-dev libmbedtls-dev
66+ apt_deps : ccache git cmake build-essential flatbuffers-compiler
7167 run : |
7268 sudo apt update
7369 sudo apt install -y ${{ env.apt_deps }}
7470
75- - name : Build native
71+ - name : Build (webos arm)
7672 env :
77- CCACHE_DIR : ${{ github.workspace }}/${{ env.CCACHE_DIR_NATIVE }}
73+ CCACHE_DIR : ${{ github.workspace }}/${{ env.CCACHE_CACHE_DIR }}
7874 run : |
79- pushd ./${{ env.BUILD_DIR_NATIVE }}
75+ pushd ./${{ env.BUILD_DIR }}
8076 cmake .. \
8177 -DCMAKE_C_COMPILER_LAUNCHER=ccache \
8278 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
79+ -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
8380 -DCMAKE_BUILD_TYPE=Release \
84- -DENABLE_FLATBUF_SERVER=OFF \
85- -DENABLE_DISPMANX=OFF \
86- -DENABLE_FB=OFF \
81+ -DPLATFORM=linux \
82+ -DENABLE_SPIDEV=OFF \
8783 -DENABLE_V4L2=OFF \
8884 -DENABLE_X11=OFF \
89- -DENABLE_XCB=OFF \
90- -DENABLE_BOBLIGHT_SERVER=OFF \
85+ -DENABLE_PIPEWIRE=OFF \
86+ -DENABLE_WS281PWM=OFF \
87+ -DENABLE_AVAHI=OFF \
88+ -DENABLE_SOUNDCAPLINUX=OFF \
9189 -DENABLE_CEC=OFF \
92- -DENABLE_DEV_NETWORK=OFF \
93- -DENABLE_DEV_SERIAL=OFF \
94- -DENABLE_DEV_TINKERFORGE=OFF \
95- -DENABLE_DEV_USB_HID=OFF \
96- -DENABLE_EFFECTENGINE=OFF \
97- -DENABLE_REMOTE_CTL=OFF \
98- -DENABLE_QT=OFF \
99- -DENABLE_FORWARDER=OFF \
100- -DENABLE_DEV_SPI=OFF \
101- -DENABLE_MDNS=OFF \
102- -DENABLE_FLATBUF_CONNECT=ON \
103- -DENABLE_PROTOBUF_SERVER=OFF \
104- -Wno-dev
105- make
106- popd
107-
108- - name : Build cross (webos arm)
109- env :
110- CCACHE_DIR : ${{ github.workspace }}/${{ env.CCACHE_DIR_CROSS }}
111- run : |
112- pushd ./${{ env.BUILD_DIR_CROSS }}
113- cmake .. \
114- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
115- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
116- -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
117- -DCMAKE_BUILD_TYPE=Release \
118- -DPLATFORM=rpi \
119- -DHYPERION_LIGHT=ON \
120- -DENABLE_QT=OFF \
121- -DENABLE_EFFECTENGINE=OFF \
122- -DENABLE_JSONCHECKS=OFF \
123- -DENABLE_DEV_SERIAL=ON \
124- -DENABLE_DEV_USB_HID=ON \
125- -DENABLE_DEV_WS281XPWM=OFF \
126- -DENABLE_DEV_TINKERFORGE=ON \
127- -DENABLE_MDNS=OFF \
128- -DENABLE_DEPLOY_DEPENDENCIES=OFF \
129- -DENABLE_BOBLIGHT_SERVER=ON \
130- -DENABLE_FLATBUF_SERVER=ON \
131- -DENABLE_PROTOBUF_SERVER=OFF \
132- -DENABLE_FORWARDER=ON \
133- -DENABLE_FLATBUF_CONNECT=ON \
134- -DIMPORT_FLATC=${GITHUB_WORKSPACE}/hyperion.ng/${BUILD_DIR_NATIVE}/flatc_export.cmake
90+ -DENABLE_PROTOBUF=OFF
13591 make
13692 popd
13793
13894 - name : Copy built binaries to release/
13995 run : |
14096 mkdir ./release
141- cp -r ./${{ env.BUILD_DIR_CROSS }}/bin/* ./release/
97+ cp -r ./${{ env.BUILD_DIR }}/bin/* ./release/
14298 find ./release
14399
144100 - name : Copy dependencies to release/
@@ -156,13 +112,13 @@ jobs:
156112 - name : Upload artifacts
157113 uses : actions/upload-artifact@v3
158114 with :
159- name : hyperion.ng -build
160- path : ${{ github.workspace }}/hyperion.ng /release/*
115+ name : hyperhdr -build
116+ path : ${{ github.workspace }}/hyperhdr-repo /release/*
161117 if-no-files-found : error
162118
163119 build_ipk :
164120 runs-on : ubuntu-latest
165- needs : build_hyperion_ng
121+ needs : build_hyperhdr
166122
167123 steps :
168124 - uses : actions/checkout@v1
@@ -171,8 +127,8 @@ jobs:
171127
172128 - uses : actions/download-artifact@v3
173129 with :
174- name : hyperion.ng -build
175- path : hyperion.ng -build
130+ name : hyperhdr -build
131+ path : hyperhdr -build
176132
177133 - name : Display structure of downloaded files
178134 run : ls -R
@@ -222,31 +178,31 @@ jobs:
222178 popd
223179 cp -r ./service/build/dist/* ./dist/service/
224180
225- - name : Copy hyperion.ng into dist/service/hyperion
181+ - name : Copy hyperhdr into dist/service/hyperhdr
226182 run : |
227183 ls -R
228- mkdir -p ./dist/service/hyperion
229- cp -r ./hyperion.ng -build/* ./dist/service/hyperion /
184+ mkdir -p ./dist/service/hyperhdr
185+ cp -r ./hyperhdr -build/* ./dist/service/hyperhdr /
230186 ls -R
231187
232188 - name : Ensure executables +x
233189 run : |
234190 chmod +x ./dist/service/autostart.sh
235191 chmod +x ./dist/service/loader_service
236- chmod +x ./dist/service/start_hyperiond
192+ chmod +x ./dist/service/start_hyperhdr
237193
238- chmod +x ./dist/service/hyperion/hyperiond
239- chmod +x ./dist/service/hyperion/hyperion -remote
240- chmod +x ./dist/service/hyperion /flatc
241- chmod +x ./dist/service/hyperion /flathash
194+ chmod +x ./dist/service/hyperhdr/hyperhdr
195+ chmod +x ./dist/service/hyperhdr/hyperhdr -remote
196+ chmod +x ./dist/service/hyperhdr /flatc
197+ chmod +x ./dist/service/hyperhdr /flathash
242198
243199 - run : npm run package
244200 - run : npm run gen-manifest
245201
246202 - name : Upload artifact
247203 uses : actions/upload-artifact@v3
248204 with :
249- name : hyperion.ng -ipk
205+ name : hyperhdr -ipk
250206 path : |
251207 ${{github.workspace}}/*.ipk
252208
@@ -259,7 +215,7 @@ jobs:
259215 title : " Development Build"
260216 files : |
261217 ${{github.workspace}}/*.ipk
262- ${{github.workspace}}/org.webosbrew.hyperion.ng .loader.manifest.json
218+ ${{github.workspace}}/org.webosbrew.hyperhdr .loader.manifest.json
263219
264220 - uses : marvinpinto/action-automatic-releases@latest
265221 if : " startsWith(github.ref, 'refs/tags/v')"
@@ -269,4 +225,4 @@ jobs:
269225 title : ${{ github.ref_name }}
270226 files : |
271227 ${{github.workspace}}/*.ipk
272- ${{github.workspace}}/org.webosbrew.hyperion.ng .loader.manifest.json
228+ ${{github.workspace}}/org.webosbrew.hyperhdr .loader.manifest.json
0 commit comments