RDKEMW-9461: Testing native-build.yml #80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: L1 Unit Tests for rdkNativeScript | |
| permissions: | |
| contents: read | |
| checks: write | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [topic/RDKEMW-9461] | |
| pull_request: | |
| branches: [topic/RDKEMW-9461] | |
| env: | |
| AUTOMATICS_UNAME: ${{ secrets.AUTOMATICS_UNAME }} | |
| AUTOMATICS_PASSCODE: ${{ secrets.AUTOMATICS_PASSCODE }} | |
| jobs: | |
| build-and-test-l1: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout main source repository (rdkNativeScript) | |
| uses: actions/checkout@v3 | |
| - name: Checkout rdkNativeScript_tests repository (externals/build.sh and dependencies) | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: rdk-e/rdkNativeScript_tests | |
| ref: topic/RDKEMW-9461 | |
| path: rdkNativeScript_tests | |
| token: ${{ secrets.GH_PAT }} | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y \ | |
| git cmake gperf ruby-dev libglew-dev freeglut3 freeglut3-dev \ | |
| libglib2.0-dev 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 \ | |
| libunwind-dev \ | |
| libwpewebkit-1.0-dev | |
| - name: Make build.sh and scripts executable | |
| run: | | |
| chmod +x rdkNativeScript_tests/externals/build.sh | |
| find rdkNativeScript_tests/externals -type f -name "preparedashpc.sh" -exec chmod +x {} \; | |
| find rdkNativeScript_tests/externals -type f -name "copydashheaders.sh" -exec chmod +x {} \; | |
| - name: Run build.sh to build externals (from tests repo) | |
| run: | | |
| cd rdkNativeScript_tests/externals | |
| ./build.sh | |
| - name: Configure and build main repo (use CMakeLists.txt from @rdkcentral/rdkNativeScript) | |
| run: | | |
| mkdir -p build | |
| cd build | |
| cmake .. \ | |
| -DENABLE_JSRUNTIME_ESSOS=ON \ | |
| -DJSRUNTIME_ENGINE_NAME=jsc \ | |
| -DENABLE_JSRUNTIME_PLAYER=ON \ | |
| -DENABLE_AAMP_JSBINDINGS_DYNAMIC=ON | |
| cmake --build . |