-
Notifications
You must be signed in to change notification settings - Fork 25
Rebase with main branch #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yuvaramachandran-gurusamy
wants to merge
5
commits into
topic/RDKEMW-5927
Choose a base branch
from
main
base: topic/RDKEMW-5927
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e825da1
RDKTV-35185: Add sync between ssdp_http_server_callback and gdial_ssd…
yuvaramachandran-gurusamy fc79027
Merge pull request #135 from apatel859/main
apatel859 25bf296
Deploy cla action
rdkcmf-jenkins 28e45d2
Merge pull request #169 from rdkcentral/feature/actions/main-cla
Alan-Ryan 652d90d
RDK-59367: Sync up xdialserver changes from RDKE (#171) (#176)
yuvaramachandran-gurusamy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # These owners will be the default owners for everything in | ||
| # the repo. Unless a later match takes precedence, | ||
| # @global-owner1 and @global-owner2 will be requested for | ||
| # review when someone opens a pull request. | ||
| * @rdkcentral/xdialserver-maintainers |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: "CLA" | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| actions: write | ||
| statuses: write | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: [created] | ||
| pull_request_target: | ||
| types: [opened, closed, synchronize] | ||
|
|
||
| jobs: | ||
| CLA-Lite: | ||
| name: "Signature" | ||
| uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@v1 | ||
| secrets: | ||
| PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT }} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: Build Component in Native Environment | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main, 'sprint/**', 'release/**', topic/*, develop ] | ||
| pull_request: | ||
| branches: [ main, 'sprint/**', 'release/**', topic/*, develop ] | ||
|
|
||
| jobs: | ||
| build-entservices-on-pr: | ||
| name: Build xdialserver component in github rdkcentral | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: ghcr.io/rdkcentral/docker-rdk-ci:latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: native build | ||
| run: | | ||
| sh -x build_dependencies.sh | ||
| sh -x cov_build.sh | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.RDKCM_RDKE }} | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| #!/bin/bash | ||
| set -x | ||
| set -e | ||
| ############################## | ||
| GITHUB_WORKSPACE="${PWD}" | ||
|
|
||
| cd ${GITHUB_WORKSPACE} | ||
|
|
||
| # # ############################# | ||
| #1. Install Dependencies and packages | ||
|
|
||
| apt update | ||
| apt install -y ninja-build meson curl libsoup2.4-dev libxml2-dev libglib2.0-dev gobject-introspection libgirepository1.0-dev libgtk-3-dev valac pandoc | ||
| pip install jsonref | ||
|
|
||
| ############################ | ||
| # Build trevor-base64 | ||
| if [ ! -d "trower-base64" ]; then | ||
| git clone https://github.com/xmidt-org/trower-base64.git | ||
| fi | ||
| cd trower-base64 | ||
| meson setup --warnlevel 3 --werror build | ||
| ninja -C build | ||
| ninja -C build install | ||
| cd .. | ||
| ########################################### | ||
| # Clone the required repositories | ||
|
|
||
| rm -rf iarmbus ThunderTools Thunder entservices-apis entservices-testframework gssdp | ||
|
|
||
|
|
||
| git clone https://github.com/rdkcentral/iarmbus.git | ||
| export IARMBUS_PATH=$GITHUB_WORKSPACE/iarmbus | ||
|
|
||
| git clone --branch R4.4.3 https://github.com/rdkcentral/ThunderTools.git | ||
|
|
||
| git clone --branch R4.4.1 https://github.com/rdkcentral/Thunder.git | ||
|
|
||
| git clone --branch main https://github.com/rdkcentral/entservices-apis.git | ||
|
|
||
| git clone https://$GITHUB_TOKEN@github.com/rdkcentral/entservices-testframework.git | ||
|
|
||
| git clone --branch gssdp-1.2.3 https://gitlab.gnome.org/GNOME/gssdp.git | ||
|
|
||
| ############################ | ||
| # Build gssdp-1.2 | ||
| echo "======================================================================================" | ||
| echo "buliding gssdp-1.2" | ||
| cd gssdp | ||
|
|
||
| rm -rf build | ||
| meson setup build | ||
|
|
||
| ninja -C build | ||
| ninja -C build install | ||
| cd - | ||
|
|
||
| ############################ | ||
| # Build Thunder-Tools | ||
| echo "======================================================================================" | ||
| echo "buliding thunderTools" | ||
| cd ThunderTools | ||
| patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/00010-R4.4-Add-support-for-project-dir.patch | ||
| cd - | ||
|
|
||
|
|
||
| cmake -G Ninja -S ThunderTools -B build/ThunderTools \ | ||
| -DEXCEPTIONS_ENABLE=ON \ | ||
| -DCMAKE_INSTALL_PREFIX="/usr" \ | ||
| -DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake" \ | ||
| -DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake" \ | ||
|
|
||
| cmake --build build/ThunderTools --target install | ||
|
|
||
|
|
||
| ############################ | ||
| # Build Thunder | ||
| echo "======================================================================================" | ||
| echo "buliding thunder" | ||
|
|
||
| cd Thunder | ||
| patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/Use_Legact_Alt_Based_On_ThunderTools_R4.4.3.patch | ||
| patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/error_code_R4_4.patch | ||
| patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/1004-Add-support-for-project-dir.patch | ||
| patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/RDKEMW-733-Add-ENTOS-IDS.patch | ||
| cd - | ||
|
|
||
| cmake -G Ninja -S Thunder -B build/Thunder \ | ||
| -DMESSAGING=ON \ | ||
| -DCMAKE_INSTALL_PREFIX="/usr" \ | ||
| -DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake" \ | ||
| -DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake" \ | ||
| -DBUILD_TYPE=Debug \ | ||
| -DBINDING=127.0.0.1 \ | ||
| -DPORT=55555 \ | ||
| -DEXCEPTIONS_ENABLE=ON \ | ||
|
|
||
| cmake --build build/Thunder --target install | ||
|
|
||
| ############################ | ||
| # Build entservices-apis | ||
| echo "======================================================================================" | ||
| echo "buliding entservices-apis" | ||
| cd entservices-apis | ||
| rm -rf jsonrpc/DTV.json | ||
| cd .. | ||
|
|
||
| cmake -G Ninja -S entservices-apis -B build/entservices-apis \ | ||
| -DEXCEPTIONS_ENABLE=ON \ | ||
| -DCMAKE_INSTALL_PREFIX="/usr" \ | ||
| -DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake" \ | ||
|
|
||
| cmake --build build/entservices-apis --target install | ||
|
|
||
| ############################ | ||
|
|
||
| ############################ | ||
| # Build and deploy stubs for IARMBus and WPEFramework securityagent | ||
| mkdir -p /usr/include/WPEFramework/securityagent | ||
| cp $GITHUB_WORKSPACE/stubs/securityagent/* /usr/include/WPEFramework/securityagent/ -v | ||
|
|
||
| echo "======================================================================================" | ||
| echo "Building IARMBus and WPEFramework securityagent stubs" | ||
| cd $GITHUB_WORKSPACE | ||
| cd ./stubs | ||
| g++ -fPIC -shared -o libIARMBus.so iarm_stubs.cpp -I$GITHUB_WORKSPACE/stubs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I$IARMBUS_PATH/core -I$IARMBUS_PATH/core/include -fpermissive | ||
| g++ -fPIC -shared -o libWPEFrameworkSecurityUtil.so securityagent/SecurityTokenUtil.cpp -I$GITHUB_WORKSPACE/stubs -fpermissive | ||
|
|
||
| cp libIARMBus.so /usr/local/lib/ | ||
| cp libWPEFrameworkSecurityUtil.so /usr/local/lib/ |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #!/bin/bash | ||
| set -x | ||
| set -e | ||
| ############################## | ||
| GITHUB_WORKSPACE="${PWD}" | ||
| ls -la ${GITHUB_WORKSPACE} | ||
| ############################ | ||
| # Build xdialserver | ||
| echo "buliding xdialserver" | ||
|
|
||
| cd ${GITHUB_WORKSPACE} | ||
|
|
||
| make | ||
|
|
||
| echo "======================================================================================" | ||
| exit 0 |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 3 months ago
To fix this issue, add a
permissionsblock specifying the minimal permissions needed for the workflow. The best practice is to start withcontents: read, then add additional permissions as needed for the workflow functionality. If the workflow only checks out code and runs build scripts (as shown), thencontents: readshould be sufficient. The permissions block may be added either at the root level (to apply to all jobs), or within the individual job(s) if different jobs require different permissions; for this workflow with a single job, either location will work, but root level is simpler and will prevent future issues if more jobs are added. The file to edit is.github/workflows/native_full_build.yml, and the block should be added near the top (e.g., after thenameand before or afteron), with proper YAML indentation.