Skip to content

Commit 059b4f7

Browse files
committed
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?);
1 parent 603e35e commit 059b4f7

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,15 @@ jobs:
7070
g++-arm-linux-gnueabihf \
7171
gcc-arm-linux-gnueabihf \
7272
g++-aarch64-linux-gnu \
73-
libasio-dev libssl-dev
73+
libasio-dev libssl-dev libncurses-dev
7474
- name: Build
7575
run: |
76-
build_args='-DENABLE_TUI_SUPPORT=0'
76+
build_args=''
77+
if [[ "${{ matrix.arch }}" == 'amd64' ]]; then
78+
build_args='-DENABLE_TUI_SUPPORT=1'
79+
else
80+
build_args='-DENABLE_TUI_SUPPORT=0'
81+
fi
7782
if [[ "${{ github.event_name }}" == 'push' ]]; then
7883
build_args="$build_args -DCMAKE_BUILD_TYPE=${{ inputs.build_type }}"
7984
if [[ "${{ inputs.strip_symbols }}" == 'true' ]]; then

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,23 @@ jobs:
4848
g++-arm-linux-gnueabihf \
4949
gcc-arm-linux-gnueabihf \
5050
g++-aarch64-linux-gnu \
51-
libasio-dev libssl-dev
51+
libasio-dev libssl-dev libncurses-dev
5252
- name: Build
5353
run: |
5454
if [[ "${{ matrix.arch }}" == 'armhf' ]]; then
5555
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s" \
5656
-DENABLE_TUI_SUPPORT=0 \
5757
-DCROSS_COMPILE_RPI_ARM=1 .
5858
else
59-
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s" \
60-
-DENABLE_TUI_SUPPORT=0 \
61-
-D "CROSS_COMPILE_$(echo '${{ matrix.arch }}' | tr '[:lower:]' '[:upper:]')=1" .
59+
if [[ "${{ github.event_name }}" == 'amd64' ]]; then
60+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s" \
61+
-DENABLE_TUI_SUPPORT=1 \
62+
-D "CROSS_COMPILE_$(echo '${{ matrix.arch }}' | tr '[:lower:]' '[:upper:]')=1" .
63+
else
64+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s" \
65+
-DENABLE_TUI_SUPPORT=0 \
66+
-D "CROSS_COMPILE_$(echo '${{ matrix.arch }}' | tr '[:lower:]' '[:upper:]')=1" .
67+
fi
6268
fi
6369
6470
make -j $(nproc)

0 commit comments

Comments
 (0)