diff --git a/.github/workflows/jsruntime_L1tests.yml b/.github/workflows/jsruntime_L1tests.yml deleted file mode 100644 index fd7d3c4..0000000 --- a/.github/workflows/jsruntime_L1tests.yml +++ /dev/null @@ -1,106 +0,0 @@ -name: L1 Unit Tests for rdkNativeScript -permissions: - contents: read - checks: write - -on: - push: - branches: [develop] - pull_request: - branches: [develop] - workflow_dispatch: - -env: - AUTOMATICS_UNAME: ${{ secrets.AUTOMATICS_UNAME }} - AUTOMATICS_PASSCODE: ${{ secrets.AUTOMATICS_PASSCODE }} - -jobs: - build-and-test-l1: - runs-on: ubuntu-latest - - steps: - - name: Checkout source repository - uses: actions/checkout@v3 - - - name: Checkout rdkNativeScript_tests repository - uses: actions/checkout@v3 - with: - repository: rdk-e/rdkNativeScript_tests - ref: topic/RDKEMW-5610 - path: rdkNativeScript_tests - token: ${{ secrets.GH_PAT }} - - - name: Install dependencies - run: | - sudo apt-get update && sudo apt-get install -y \ - g++ \ - cmake \ - build-essential \ - libcurl4-openssl-dev \ - libcjson-dev \ - libgtest-dev \ - libssl-dev \ - zlib1g-dev \ - libuv1-dev \ - lcov \ - libglib2.0-dev - - - name: Build Google Test and Google Mock - run: | - cd /usr/src/googletest - sudo cmake -S . -B build - sudo cmake --build build - sudo cp build/lib/libgmock.a /usr/lib - sudo cp build/lib/libgmock_main.a /usr/lib - sudo cp build/lib/libgtest.a /usr/lib - sudo cp build/lib/libgtest_main.a /usr/lib - - - name: Configure and Build L1 - run: | - mkdir -p build_l1 - cd build_l1 - cmake -DCMAKE_BUILD_TYPE=Debug \ - -DRUN_L1=ON \ - -DRUN_L2=OFF \ - -DENABLE_JSRUNTIME_ESSOS=ON \ - -DENABLE_JSRUNTIME_PLAYER=ON \ - -DENABLE_AAMP_JSBINDINGS=ON \ - -DENABLE_AAMP_JSBINDINGS_DYNAMIC=ON \ - -DENABLE_AAMP_JSBINDINGS_STATIC=OFF \ - -DJSRUNTIME_ENGINE_NAME=jsc \ - -Djsruntime_source=.. ../rdkNativeScript_tests - make -j$(nproc) - - - name: Run L1 Tests and Generate JUnit Results - run: | - cd build_l1 - #ctest -R RunL1Tests --output-on-failure --no-compress-output --output-junit ctest-results.xml - ./L1_tests --gtest_output=xml:ctest-results.xml - - - name: Publish L1 test results - uses: dorny/test-reporter@v1 - with: - name: Unit Test Results - path: build_l1/ctest-results.xml - reporter: java-junit - - - name: Generate coverage report - run: | - cd build_l1 - lcov --capture --directory . --output-file coverage.info --ignore-errors mismatch --rc geninfo_unexecuted_blocks=1 - lcov --remove coverage.info '/usr/*' '*/test/*' '*/tests/*' '*/L1/*' '*/mocks/*' '*/gtest/*' '*/gmock/*' '*/googletest/*' '*/include/*' --output-file coverage.cleaned.info --ignore-errors unused - lcov --extract coverage.cleaned.info '*/src/*' --output-file coverage.final.info - genhtml coverage.final.info --output-directory html_coverage_report - - - name: Upload test result file (JUnit XML) - uses: actions/upload-artifact@v4 - with: - name: ctest-results-l1-${{ github.run_id }} - path: build_l1/ctest-results.xml - - - name: Upload coverage report - uses: actions/upload-artifact@v4 - with: - name: l1-html-coverage-report - path: build_l1/html_coverage_report - if-no-files-found: warn diff --git a/.github/workflows/native-full-build.yml b/.github/workflows/native-full-build.yml deleted file mode 100644 index f8137e6..0000000 --- a/.github/workflows/native-full-build.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Build Component in Native Environment -permissions: - contents: read - checks: write - -on: - workflow_dispatch: - push: - branches: [develop] - pull_request: - branches: [develop] - -env: - AUTOMATICS_UNAME: ${{ secrets.AUTOMATICS_UNAME }} - AUTOMATICS_PASSCODE: ${{ secrets.AUTOMATICS_PASSCODE }} - -jobs: - build-nativescript: - runs-on: ubuntu-latest - - steps: - - name: Checkout main source repository - uses: actions/checkout@v3 - - - name: Install dependencies - run: | - sudo apt-get update && sudo apt-get install -y \ - git cmake gperf ruby-dev libglew-dev libglut-dev \ - libglib2.0-dev libglib2.0-0 g++ meson bison libjpeg-dev libpng-dev \ - libfreetype6-dev libicu-dev autoconf libtool libxml2-dev \ - libcurl4-openssl-dev libexpat1-dev doxygen vim libcjson-dev \ - libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \ - libwayland-bin libwayland-dev wayland-protocols \ - libreadline-dev net-tools libmount1 libpcre3 libselinux1 zlib1g \ - libunwind-dev libboost-dev libboost-system-dev libboost-thread-dev libboost-chrono-dev libwebsocketpp-dev jq - - - name: Get asset ID for externals.zip - id: asset - run: | - ASSET_ID=$(curl -s -H "Authorization: Bearer ${{ secrets.GH_PAT }}" \ - https://api.github.com/repos/rdk-e/rdkNativeScript_tests/releases/tags/extlibs | \ - jq '.assets[] | select(.name=="externals.zip") | .id') - echo "ASSET_ID=$ASSET_ID" >> $GITHUB_ENV - - - name: Download externals.zip using asset ID - run: | - curl -L \ - -H "Authorization: Bearer ${{ secrets.GH_PAT }}" \ - -H "Accept: application/octet-stream" \ - -o externals.zip \ - https://api.github.com/repos/rdk-e/rdkNativeScript_tests/releases/assets/$ASSET_ID - - - name: Check externals.zip download - run: | - file externals.zip - ls -lh externals.zip - unzip -l externals.zip | head -20 - - - name: Extract externals.zip - run: | - unzip -o externals.zip - - - name: Set LD_LIBRARY_PATH for ICU 66 - run: echo "LD_LIBRARY_PATH=$(pwd)/externals/extlibs/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - - - name: Configure and build nativescript - run: | - mkdir -p build - cd build - cmake .. \ - -DENABLE_JSRUNTIME_ESSOS=ON \ - -DJSRUNTIME_ENGINE_NAME=jsc \ - -DENABLE_JSRUNTIME_PLAYER=ON \ - -DENABLE_AAMP_JSBINDINGS_DYNAMIC=ON \ - -DBUILD_JSRUNTIME_CLIENT=ON \ - -DENABLE_JSRUNTIME_SERVER=ON \ - -DCMAKE_CXX_FLAGS="-I../externals/extlibs/include/rtcore" - cmake --build . - - - name: Upload build outputs to artifact - uses: actions/upload-artifact@v4 - with: - name: jsruntime-build-artifacts - path: | - build/JSRuntimeClient - build/JSRuntimeJSC - build/libjsclib.so - build/libJSRuntimeJSC.so - if-no-files-found: error