6464
6565
6666 # --------------------------------------------------------------------------------
67- Win_ST_Py_DDS_CI : # Windows, Static, Python, Tools, DDS, libCI
67+ Win_ST_Py_CI : # Windows, Static, Python, Tools, libCI with executables
6868 runs-on : windows-2019
6969 timeout-minutes : 60
7070 steps :
9797 run : |
9898 LRS_SRC_DIR=$(pwd)
9999 cd ${{env.WIN_BUILD_DIR}}
100- cmake ${LRS_SRC_DIR} -G "Visual Studio 16 2019" -DBUILD_SHARED_LIBS=false -DBUILD_EXAMPLES=false -DBUILD_TOOLS=true -DBUILD_UNIT_TESTS=true -DCHECK_FOR_UPDATES=false -DBUILD_WITH_DDS=true -DPYTHON_EXECUTABLE=${{env.PYTHON_PATH}} -DBUILD_PYTHON_BINDINGS=true
100+ cmake ${LRS_SRC_DIR} -G "Visual Studio 16 2019" -DBUILD_SHARED_LIBS=false -DBUILD_EXAMPLES=false -DBUILD_TOOLS=true -DBUILD_UNIT_TESTS=true -DCHECK_FOR_UPDATES=false -DBUILD_WITH_DDS=false -DPYTHON_EXECUTABLE=${{env.PYTHON_PATH}} -DBUILD_PYTHON_BINDINGS=true
101101
102102 - name : Build
103103 # Build your program with the given configuration
@@ -107,8 +107,59 @@ jobs:
107107 cmake --build . --config ${{env.LRS_RUN_CONFIG}} -- -m
108108
109109 - name : LibCI
110+ # Note: requires BUILD_UNIT_TESTS or the executable C++ unit-tests won't run (and it won't complain)
111+ shell : bash
112+ run : |
113+ python3 unit-tests/run-unit-tests.py --no-color --debug --stdout --not-live --context "windows" ${{env.WIN_BUILD_DIR}}/Release
114+
115+
116+ # --------------------------------------------------------------------------------
117+ Win_SH_Py_DDS_CI : # Windows, Shared, Python, Tools, DDS, libCI without executables
118+ runs-on : windows-2019
119+ timeout-minutes : 60
120+ steps :
121+ - uses : actions/checkout@v3
122+ - uses : actions/setup-python@v3
123+ with :
124+ python-version : ' 3.8.1'
125+
126+ - name : Enable Long Paths
127+ shell : powershell
128+ run : |
129+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
130+
131+ - name : Check_API
132+ shell : bash
133+ run : |
134+ cd scripts
135+ ./api_check.sh
136+ cd ..
137+
138+ - name : PreBuild
139+ shell : bash
140+ run : |
141+ mkdir ${{env.WIN_BUILD_DIR}}
142+
143+ - name : Configure CMake
144+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
145+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
146+ shell : bash
147+ run : |
148+ LRS_SRC_DIR=$(pwd)
149+ cd ${{env.WIN_BUILD_DIR}}
150+ cmake ${LRS_SRC_DIR} -G "Visual Studio 16 2019" -DBUILD_SHARED_LIBS=true -DBUILD_EXAMPLES=false -DBUILD_TOOLS=true -DBUILD_UNIT_TESTS=false -DCHECK_FOR_UPDATES=false -DBUILD_WITH_DDS=true -DPYTHON_EXECUTABLE=${{env.PYTHON_PATH}} -DBUILD_PYTHON_BINDINGS=true
151+
152+ - name : Build
110153 # Build your program with the given configuration
111154 shell : bash
155+ run : |
156+ cd ${{env.WIN_BUILD_DIR}}
157+ cmake --build . --config ${{env.LRS_RUN_CONFIG}} -- -m
158+
159+ - name : LibCI
160+ # Note: we specifically disable BUILD_UNIT_TESTS so the executable C++ unit-tests won't run
161+ # This is to save time as DDS already lengthens the build...
162+ shell : bash
112163 run : |
113164 python3 unit-tests/run-unit-tests.py --no-color --debug --stdout --not-live --context "dds windows" ${{env.WIN_BUILD_DIR}}/Release
114165
@@ -216,7 +267,7 @@ jobs:
216267
217268
218269 # --------------------------------------------------------------------------------
219- U20_SH_Py_DDS_CI : # Ubuntu 2020, Shared, Python, DDS, LibCI
270+ U20_SH_Py_CI : # Ubuntu 2020, Shared, Python, LibCI with executables
220271 runs-on : ubuntu-20.04
221272 timeout-minutes : 60
222273 steps :
@@ -247,11 +298,54 @@ jobs:
247298 shell : bash
248299 run : |
249300 cd build
250- cmake .. -DBUILD_SHARED_LIBS=true -DBUILD_EXAMPLES=false -DBUILD_TOOLS=true -DBUILD_UNIT_TESTS=true -DCHECK_FOR_UPDATES=false -DBUILD_WITH_DDS=true -DBUILD_PYTHON_BINDINGS=true -DPYTHON_EXECUTABLE=$(which python3)
301+ cmake .. -DBUILD_SHARED_LIBS=true -DBUILD_EXAMPLES=false -DBUILD_TOOLS=true -DBUILD_UNIT_TESTS=true -DCHECK_FOR_UPDATES=false -DBUILD_WITH_DDS=false -DBUILD_PYTHON_BINDINGS=true -DPYTHON_EXECUTABLE=$(which python3)
251302 cmake --build . --config ${{env.LRS_RUN_CONFIG}} -- -j4
252303
253304 - name : LibCI
254- # Build your program with the given configuration
305+ # Note: requires BUILD_UNIT_TESTS or the executable C++ unit-tests won't run (and it won't complain)
306+ shell : bash
307+ run : |
308+ python3 unit-tests/run-unit-tests.py --no-color --debug --stdout --not-live --context "linux"
309+
310+
311+ # --------------------------------------------------------------------------------
312+ U20_ST_Py_DDS_CI : # Ubuntu 2020, Static, Python, DDS, LibCI without executables
313+ runs-on : ubuntu-20.04
314+ timeout-minutes : 60
315+ steps :
316+ - uses : actions/checkout@v3
317+
318+ - name : Prebuild
319+ shell : bash
320+ run : |
321+ sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test;
322+ sudo apt-get update;
323+ sudo apt-get install -qq build-essential xorg-dev libgl1-mesa-dev libglu1-mesa-dev libglew-dev libglm-dev;
324+ sudo apt-get install -qq libusb-1.0-0-dev;
325+ sudo apt-get install -qq libgtk-3-dev;
326+ #sudo apt-get install gcc-5 g++-5;
327+ #sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5;
328+ sudo apt-get install libglfw3-dev libglfw3;
329+
330+ - name : Check_API
331+ shell : bash
332+ run : |
333+ cd scripts
334+ ./api_check.sh
335+ ./pr_check.sh
336+ cd ..
337+ mkdir build
338+
339+ - name : Build
340+ shell : bash
341+ run : |
342+ cd build
343+ cmake .. -DBUILD_SHARED_LIBS=false -DBUILD_EXAMPLES=false -DBUILD_TOOLS=true -DBUILD_UNIT_TESTS=false -DCHECK_FOR_UPDATES=false -DBUILD_WITH_DDS=true -DBUILD_PYTHON_BINDINGS=true -DPYTHON_EXECUTABLE=$(which python3)
344+ cmake --build . --config ${{env.LRS_RUN_CONFIG}} -- -j4
345+
346+ - name : LibCI
347+ # Note: we specifically disable BUILD_UNIT_TESTS so the executable C++ unit-tests won't run
348+ # This is to save time as DDS already lengthens the build...
255349 shell : bash
256350 run : |
257351 python3 unit-tests/run-unit-tests.py --no-color --debug --stdout --not-live --context "dds linux"
0 commit comments