Skip to content

Commit

Permalink
Check rialto branch (for rialto headers) in github action (#51)
Browse files Browse the repository at this point in the history
Summary: Check rialto branch (for rialto headers) in github action
Type: Feature
Test Plan: UnitTests
Jira: RIALTO-475
  • Loading branch information
skywojciechowskim authored Apr 5, 2024
1 parent b61d140 commit ab8183e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/build_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,22 @@ jobs:
cd lcov-2.0
sudo make install
# Check, from which rialto branch should we download headers
- name: Check if rialto branch with the same name exists
id: check-branch
shell: sh +e {0}
run: |
branch=master
git ls-remote --exit-code --heads "https://github.com/rdkcentral/rialto.git" ${{ github.event.pull_request.head.ref }} > /dev/null
if [ $? -eq 0 ]; then
branch="${{ github.event.pull_request.head.ref }}"
fi
echo "branch=$branch" >> "$GITHUB_OUTPUT"
# Run the build script
- name: build_ut.py script
run: |
python build_ut.py -c -xml -f -cov
python build_ut.py -c -xml -f -cov -b ${{ steps.check-branch.outputs.branch }}
# Process the test results
- name: Check results
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/valgrind_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,22 @@ jobs:
run: |
sudo apt-get install valgrind
# Check, from which rialto branch should we download headers
- name: Check if rialto branch with the same name exists
id: check-branch
shell: sh +e {0}
run: |
branch=master
git ls-remote --exit-code --heads "https://github.com/rdkcentral/rialto.git" ${{ github.event.pull_request.head.ref }} > /dev/null
if [ $? -eq 0 ]; then
branch="${{ github.event.pull_request.head.ref }}"
fi
echo "branch=$branch" >> "$GITHUB_OUTPUT"
# Run the build script with valgrind
- name: Run unittests with valgrind
run: |
python build_ut.py -c -xml -f -val
python build_ut.py -c -xml -f -val -b ${{ steps.check-branch.outputs.branch }}
# Process the valgrind results and create a csv
- name: Process valgrind results
Expand Down

0 comments on commit ab8183e

Please sign in to comment.