Skip to content

Commit

Permalink
[Actions] Adding Warning Reporting to the Linux build (#1375)
Browse files Browse the repository at this point in the history
* Add several flag to build extensions and regex support to turn them off if needed

* Add several flags to build extensions and regex support to turn them off if needed

* Removing hibernate support

* Formatting changes

* Removing PROCESSCONTAINERS flag

* Not building DPRIVILEGEDREQUEST for now since it doesn't compile

* Building warning reporting on Windows as well

* Not building reporting on Windows for now
  • Loading branch information
VeithMetro committed Jul 27, 2023
1 parent a8980c6 commit 3343be2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/Build Thunder on Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
build_type: [Debug, Release, MinSizeRel]

name: Build type - ${{matrix.build_type}}
steps:
# ----- Thunder -----
Expand All @@ -24,7 +24,7 @@ jobs:
with:
path: Thunder
repository: rdkcentral/Thunder

- name: Regex Thunder
if: contains(github.event.pull_request.body, '[DependsOn=Thunder:')
id: thunder
Expand All @@ -33,23 +33,23 @@ jobs:
regex_pattern: '(?<=\[DependsOn=Thunder:).*(?=\])'
regex_flags: 'gim'
search_string: ${{github.event.pull_request.body}}

- name: Checkout Thunder - ${{steps.thunder.outputs.first_match}}
if: contains(github.event.pull_request.body, '[DependsOn=Thunder:')
uses: actions/checkout@v3
with:
path: Thunder
repository: rdkcentral/Thunder
ref: ${{steps.thunder.outputs.first_match}}

# ----- ThunderTools -----
- name: Checkout ThunderTools - default
if: ${{ !contains(github.event.pull_request.body, '[DependsOn=ThunderTools:') }}
uses: actions/checkout@v3
with:
path: ThunderTools
repository: rdkcentral/ThunderTools

- name: Regex ThunderTools
if: contains(github.event.pull_request.body, '[DependsOn=ThunderTools:')
id: tools
Expand Down Expand Up @@ -80,13 +80,22 @@ jobs:
sudo apt install python3-pip
pip install jsonref
sudo apt install build-essential cmake ninja-build libusb-1.0-0-dev zlib1g-dev libssl-dev
- name: Install generators
run: |
cmake -G Ninja -S ThunderTools -B ${{matrix.build_type}}/build/ThunderTools \
-DCMAKE_INSTALL_PREFIX=${{matrix.build_type}}/install/usr
cmake --build ${{matrix.build_type}}/build/ThunderTools --target install
- name: Regex Thunder
if: contains(github.event.pull_request.body, '[Options:')
id: regexthunder
uses: AsasInnab/regex-action@v1
with:
regex_pattern: '(?<=\[Options:).*(?=\])'
regex_flags: 'gim'
search_string: ${{github.event.pull_request.body}}

- name: Build Thunder
run: |
cmake -G Ninja -S Thunder -B ${{matrix.build_type}}/build/Thunder \
Expand All @@ -99,15 +108,17 @@ jobs:
-DPORT="55555" \
-DPROXYSTUB_PATH="${PWD}/${{matrix.build_type}}/install/usr/lib/wpeframework/proxystubs" \
-DSYSTEM_PATH="${PWD}/${{matrix.build_type}}/install/usr/lib/wpeframework/plugins" \
-DVOLATILE_PATH="tmp"
-DVOLATILE_PATH="tmp" \
-DLOCALTRACER=ON \
-DWARNING_REPORTING=ON \
${{steps.regexthunder.outputs.first_match}}
cmake --build ${{matrix.build_type}}/build/Thunder --target install
- name: Tar files
run: tar -czvf ${{matrix.build_type}}.tar.gz ${{matrix.build_type}}

- name: Upload
uses: actions/upload-artifact@v3
with:
name: Thunder-${{matrix.build_type}}-artifact
path: ${{matrix.build_type}}.tar.gz

8 changes: 4 additions & 4 deletions .github/workflows/Build Thunder on Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
path: ThunderOnWindows/Thunder
repository: ${{github.repository_owner}}/Thunder

- name: Regex Thunder
if: contains(github.event.pull_request.body, '[DependsOn=Thunder:')
id: thunder
Expand All @@ -45,7 +45,7 @@ jobs:
regex_pattern: '(?<=\[DependsOn=Thunder:).*(?=\])'
regex_flags: 'gim'
search_string: ${{github.event.pull_request.body}}

- name: Checkout Thunder - ${{steps.thunder.outputs.first_match}}
if: contains(github.event.pull_request.body, '[DependsOn=Thunder:')
uses: actions/checkout@v3
Expand Down Expand Up @@ -114,10 +114,10 @@ jobs:
cd ThunderOnWindows
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%bridge%" "%solution%"
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%comProcess%" "%solution%"
- name: Tar files
run: tar -czvf ${{matrix.type}}${{matrix.version}}.tar.gz artifacts

- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 3343be2

Please sign in to comment.