Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build
# Triggered when code is pushed to any branch in a repository
on: push

env:
BUILD_TYPE: ${{ startsWith(github.ref, 'refs/tags/') && 'Release' || 'Debug' }}

jobs:
linux:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex
mkdir -p release
cd release

cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
cmake -GNinja -DCMAKE_BUILD_TYPE="${BUILD_TYPE:-Debug}" ..
ninja

ctest --output-on-failure
4 changes: 3 additions & 1 deletion scripts/build_windows.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
echo on

IF "%BUILD_TYPE%"=="" SET BUILD_TYPE=Debug

echo Building ModbusScope using MinGW ...
mkdir release
cd release
Expand All @@ -8,7 +10,7 @@ echo %PATH%

g++ -v

cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ..
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
IF ERRORLEVEL 1 GOTO errorHandling

ninja
Expand Down