|
|
|
@ -5,9 +5,9 @@ on:
|
|
|
|
workflow_dispatch:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
buildType:
|
|
|
|
buildType:
|
|
|
|
description: 'CMake Build Type'
|
|
|
|
description: "CMake Build Type"
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: 'Release'
|
|
|
|
default: "Release"
|
|
|
|
type: choice
|
|
|
|
type: choice
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
- Release
|
|
|
|
- Release
|
|
|
|
@ -15,7 +15,7 @@ on:
|
|
|
|
- RelWithDebInfo
|
|
|
|
- RelWithDebInfo
|
|
|
|
- MinSizeRel
|
|
|
|
- MinSizeRel
|
|
|
|
stripSymbols:
|
|
|
|
stripSymbols:
|
|
|
|
description: 'Strip Symbols'
|
|
|
|
description: "Strip Symbols"
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
push:
|
|
|
|
push:
|
|
|
|
@ -60,6 +60,7 @@ jobs:
|
|
|
|
submodules: recursive
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y git build-essential cmake \
|
|
|
|
sudo apt-get install -y git build-essential cmake \
|
|
|
|
g++-arm-linux-gnueabihf \
|
|
|
|
g++-arm-linux-gnueabihf \
|
|
|
|
gcc-arm-linux-gnueabihf \
|
|
|
|
gcc-arm-linux-gnueabihf \
|
|
|
|
@ -67,13 +68,14 @@ jobs:
|
|
|
|
libasio-dev
|
|
|
|
libasio-dev
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
|
|
|
|
build_args='-DENABLE_TUI_SUPPORT=0'
|
|
|
|
if [[ "${{ github.event_name }}" == 'push' ]]; then
|
|
|
|
if [[ "${{ github.event_name }}" == 'push' ]]; then
|
|
|
|
build_args="-DCMAKE_BUILD_TYPE=${{ inputs.buildType }}"
|
|
|
|
build_args="$build_args -DCMAKE_BUILD_TYPE=${{ inputs.buildType }}"
|
|
|
|
if [[ "${{ inputs.stripSymbols }}" == 'true' ]]; then
|
|
|
|
if [[ "${{ inputs.stripSymbols }}" == 'true' ]]; then
|
|
|
|
build_args="$build_args -DCMAKE_C_FLAGS='-s' -DCMAKE_CXX_FLAGS='-s'"
|
|
|
|
build_args="$build_args -DCMAKE_C_FLAGS='-s' -DCMAKE_CXX_FLAGS='-s'"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
build_args='-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s"'
|
|
|
|
build_args="$build_args -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS='-s' -DCMAKE_CXX_FLAGS='-s'"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${{ matrix.arch }}" == 'armhf' ]]; then
|
|
|
|
if [[ "${{ matrix.arch }}" == 'armhf' ]]; then
|
|
|
|
|