From 717cd395aff21391b472a8d5f244544316844e17 Mon Sep 17 00:00:00 2001 From: cmuhammedrafi Date: Tue, 27 Aug 2024 12:27:48 +0530 Subject: [PATCH] rdkservice --- .github/workflows/L1-tests.yml | 124 ++++++++++++++++----------------- 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index f366ead955..c072708c88 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -230,66 +230,66 @@ jobs: if: ${{ matrix.compiler == 'gcc' && matrix.coverage == 'with-coverage' && !env.ACT }} run: echo "TOOLCHAIN_FILE=${{github.workspace}}/rdkservices/Tests/gcc-with-coverage.cmake" >> $GITHUB_ENV - # - name: Build rdkservices - # run: > - # cmake - # -S "${{github.workspace}}/rdkservices" - # -B build/rdkservices - # -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" - # -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/install/usr" - # -DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake" - # -DCMAKE_CXX_FLAGS=" - # -fprofile-arcs - # -ftest-coverage - # -DEXCEPTIONS_ENABLE=ON - # -I ${{github.workspace}}/rdkservices/Tests/headers - # -I ${{github.workspace}}/rdkservices/Tests/headers/audiocapturemgr - # -I ${{github.workspace}}/rdkservices/Tests/headers/rdk/ds - # -I ${{github.workspace}}/rdkservices/Tests/headers/rdk/iarmbus - # -I ${{github.workspace}}/rdkservices/Tests/headers/rdk/iarmmgrs-hal - # -I ${{github.workspace}}/rdkservices/Tests/headers/ccec/drivers - # -I ${{github.workspace}}/rdkservices/Tests/headers/network - # -include ${{github.workspace}}/rdkservices/Tests/mocks/devicesettings.h - # -include ${{github.workspace}}/rdkservices/Tests/mocks/maintenanceMGR.h - # -include ${{github.workspace}}/rdkservices/Tests/mocks/pkg.h - # -include ${{github.workspace}}/rdkservices/Tests/mocks/secure_wrappermock.h - # -include ${{github.workspace}}/rdkservices/Tests/mocks/WpaCtrl.h - # -Wall -Werror -Wno-error=format= - # -Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog - # -DENABLE_TELEMETRY_LOGGING - # -DUSE_IARMBUS - # -DENABLE_SYSTEM_GET_STORE_DEMO_LINK - # -DENABLE_DEEP_SLEEP - # -DENABLE_SET_WAKEUP_SRC_CONFIG - # -DENABLE_THERMAL_PROTECTION - # -DUSE_DRM_SCREENCAPTURE - # -DHAS_API_SYSTEM - # -DHAS_API_POWERSTATE - # -DHAS_RBUS - # -DENABLE_DEVICE_MANUFACTURER_INFO" - # -DCOMCAST_CONFIG=OFF - # -DCMAKE_DISABLE_FIND_PACKAGE_DS=ON - # -DCMAKE_DISABLE_FIND_PACKAGE_IARMBus=ON - # -DCMAKE_DISABLE_FIND_PACKAGE_Udev=ON - # -DCMAKE_DISABLE_FIND_PACKAGE_RFC=ON - # -DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON - # -DRDK_SERVICES_L1_TEST=ON - # -DDS_FOUND=ON - # -DPLUGIN_NETWORK=OFF - # -DPLUGIN_WIFIMANAGER=OFF - # -DPLUGIN_NETWORKMANAGER=ON - # -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - # && - # cmake --build build/rdkservices -j16 - # && - # cmake --install build/rdkservices + - name: Build rdkservices + run: > + cmake + -S "${{github.workspace}}/rdkservices" + -B build/rdkservices + -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" + -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/install/usr" + -DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake" + -DCMAKE_CXX_FLAGS=" + -fprofile-arcs + -ftest-coverage + -DEXCEPTIONS_ENABLE=ON + -I ${{github.workspace}}/rdkservices/Tests/headers + -I ${{github.workspace}}/rdkservices/Tests/headers/audiocapturemgr + -I ${{github.workspace}}/rdkservices/Tests/headers/rdk/ds + -I ${{github.workspace}}/rdkservices/Tests/headers/rdk/iarmbus + -I ${{github.workspace}}/rdkservices/Tests/headers/rdk/iarmmgrs-hal + -I ${{github.workspace}}/rdkservices/Tests/headers/ccec/drivers + -I ${{github.workspace}}/rdkservices/Tests/headers/network + -include ${{github.workspace}}/rdkservices/Tests/mocks/devicesettings.h + -include ${{github.workspace}}/rdkservices/Tests/mocks/maintenanceMGR.h + -include ${{github.workspace}}/rdkservices/Tests/mocks/pkg.h + -include ${{github.workspace}}/rdkservices/Tests/mocks/secure_wrappermock.h + -include ${{github.workspace}}/rdkservices/Tests/mocks/WpaCtrl.h + -Wall -Werror -Wno-error=format= + -Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog + -DENABLE_TELEMETRY_LOGGING + -DUSE_IARMBUS + -DENABLE_SYSTEM_GET_STORE_DEMO_LINK + -DENABLE_DEEP_SLEEP + -DENABLE_SET_WAKEUP_SRC_CONFIG + -DENABLE_THERMAL_PROTECTION + -DUSE_DRM_SCREENCAPTURE + -DHAS_API_SYSTEM + -DHAS_API_POWERSTATE + -DHAS_RBUS + -DENABLE_DEVICE_MANUFACTURER_INFO" + -DCOMCAST_CONFIG=OFF + -DCMAKE_DISABLE_FIND_PACKAGE_DS=ON + -DCMAKE_DISABLE_FIND_PACKAGE_IARMBus=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Udev=ON + -DCMAKE_DISABLE_FIND_PACKAGE_RFC=ON + -DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON + -DRDK_SERVICES_L1_TEST=ON + -DDS_FOUND=ON + -DPLUGIN_NETWORK=OFF + -DPLUGIN_WIFIMANAGER=OFF + -DPLUGIN_NETWORKMANAGER=ON + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + && + cmake --build build/rdkservices -j16 + && + cmake --install build/rdkservices - # - name: Upload artifacts - # if: ${{ !env.ACT }} - # uses: actions/upload-artifact@v3 - # with: - # name: artifacts - # path: | - # coverage/ - # valgrind_log - # if-no-files-found: warn \ No newline at end of file + - name: Upload artifacts + if: ${{ !env.ACT }} + uses: actions/upload-artifact@v3 + with: + name: artifacts + path: | + coverage/ + valgrind_log + if-no-files-found: warn \ No newline at end of file