-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into development/bluetooth-move-to-header
- Loading branch information
Showing
3 changed files
with
116 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,28 @@ | ||
name: Build ThunderInterfaces on MacOS | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
Thunder: | ||
uses: rdkcentral/Thunder/.github/workflows/MacOS build template.yml@master | ||
|
||
ThunderInterfaces: | ||
needs: Thunder | ||
uses: rdkcentral/ThunderInterfaces/.github/workflows/MacOS build template.yml@master | ||
|
||
# ThunderClientLibraries: | ||
# needs: ThunderInterfaces | ||
# uses: rdkcentral/ThunderClientLibraries/.github/workflows/Linux build template.yml@master | ||
|
||
# ThunderNanoServices: | ||
# needs: ThunderInterfaces | ||
# uses: rdkcentral/ThunderNanoServices/.github/workflows/Linux build template.yml@master | ||
|
||
# ThunderNanoServicesRDK: | ||
# needs: ThunderInterfaces | ||
# uses: WebPlatformForEmbedded/ThunderNanoServicesRDK/.github/workflows/Linux build template.yml@master |
This file contains 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,80 @@ | ||
name: MacOS build template | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
Thunder: | ||
runs-on: macos-14 | ||
|
||
strategy: | ||
matrix: | ||
build_type: [Debug, Release, MinSizeRel] | ||
|
||
name: Build type - ${{matrix.build_type}} | ||
steps: | ||
# --------- Installing packages & downloading artifacts --------- | ||
- name: Install necessary packages | ||
run: | | ||
brew update | ||
brew upgrade | ||
brew install ninja zlib | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install jsonref | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Thunder-${{matrix.build_type}}-artifact | ||
path: ${{matrix.build_type}} | ||
|
||
- name: Unpack files | ||
run: | | ||
tar -xvzf ${{matrix.build_type}}/${{matrix.build_type}}.tar.gz | ||
rm ${{matrix.build_type}}/${{matrix.build_type}}.tar.gz | ||
# ----- Checkout & DependsOn regex ----- | ||
- name: Checkout ThunderInterfaces - default | ||
if: ${{ !contains(github.event.pull_request.body, '[DependsOn=ThunderInterfaces:') }} | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ThunderInterfaces | ||
repository: rdkcentral/ThunderInterfaces | ||
|
||
- name: Regex ThunderInterfaces | ||
if: contains(github.event.pull_request.body, '[DependsOn=ThunderInterfaces:') | ||
id: thunderinterfaces | ||
uses: AsasInnab/regex-action@v1 | ||
with: | ||
regex_pattern: '(?<=\[DependsOn=ThunderInterfaces:).*(?=\])' | ||
regex_flags: 'gim' | ||
search_string: ${{github.event.pull_request.body}} | ||
|
||
- name: Checkout ThunderInterfaces - ${{steps.thunderinterfaces.outputs.first_match}} | ||
if: contains(github.event.pull_request.body, '[DependsOn=ThunderInterfaces:') | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ThunderInterfaces | ||
repository: rdkcentral/ThunderInterfaces | ||
ref: ${{steps.thunderinterfaces.outputs.first_match}} | ||
|
||
# ----- Building & uploading ----- | ||
- name: Build ThunderInterfaces | ||
run: | | ||
source venv/bin/activate | ||
cmake -G Ninja -S ThunderInterfaces -B ${{matrix.build_type}}/build/ThunderInterfaces \ | ||
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror" \ | ||
-DCMAKE_C_FLAGS="-Wall -Wextra -Wpedantic -Werror" \ | ||
-DCMAKE_INSTALL_PREFIX="${{matrix.build_type}}/install/usr" \ | ||
-DCMAKE_MODULE_PATH="${PWD}/${{matrix.build_type}}/install/usr/include/WPEFramework/Modules" | ||
cmake --build ${{matrix.build_type}}/build/ThunderInterfaces --target install | ||
- name: Tar files | ||
run: tar -czvf ${{matrix.build_type}}.tar.gz ${{matrix.build_type}} | ||
|
||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ThunderInterfaces-${{matrix.build_type}}-artifact | ||
path: ${{matrix.build_type}}.tar.gz |
This file contains 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