okay now that I've rewritten history, selectively for amd64 we'll build TUI in the workflow (arm, arm64 and armhf all don't support it via automatic workflow build right now, anyone got any ideas?);

pull/85/head 2025-04-16
Bryan Biedenkapp 10 months ago
parent 603e35e66e
commit 059b4f7d70

@ -70,10 +70,15 @@ jobs:
g++-arm-linux-gnueabihf \
gcc-arm-linux-gnueabihf \
g++-aarch64-linux-gnu \
libasio-dev libssl-dev
libasio-dev libssl-dev libncurses-dev
- name: Build
run: |
build_args='-DENABLE_TUI_SUPPORT=0'
build_args=''
if [[ "${{ matrix.arch }}" == 'amd64' ]]; then
build_args='-DENABLE_TUI_SUPPORT=1'
else
build_args='-DENABLE_TUI_SUPPORT=0'
fi
if [[ "${{ github.event_name }}" == 'push' ]]; then
build_args="$build_args -DCMAKE_BUILD_TYPE=${{ inputs.build_type }}"
if [[ "${{ inputs.strip_symbols }}" == 'true' ]]; then

@ -48,7 +48,7 @@ jobs:
g++-arm-linux-gnueabihf \
gcc-arm-linux-gnueabihf \
g++-aarch64-linux-gnu \
libasio-dev libssl-dev
libasio-dev libssl-dev libncurses-dev
- name: Build
run: |
if [[ "${{ matrix.arch }}" == 'armhf' ]]; then
@ -56,9 +56,15 @@ jobs:
-DENABLE_TUI_SUPPORT=0 \
-DCROSS_COMPILE_RPI_ARM=1 .
else
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s" \
-DENABLE_TUI_SUPPORT=0 \
-D "CROSS_COMPILE_$(echo '${{ matrix.arch }}' | tr '[:lower:]' '[:upper:]')=1" .
if [[ "${{ github.event_name }}" == 'amd64' ]]; then
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s" \
-DENABLE_TUI_SUPPORT=1 \
-D "CROSS_COMPILE_$(echo '${{ matrix.arch }}' | tr '[:lower:]' '[:upper:]')=1" .
else
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s" \
-DENABLE_TUI_SUPPORT=0 \
-D "CROSS_COMPILE_$(echo '${{ matrix.arch }}' | tr '[:lower:]' '[:upper:]')=1" .
fi
fi
make -j $(nproc)

Loading…
Cancel
Save

Powered by TurnKey Linux.