Build ThunderInterfaces on Linux #339
Workflow file for this run
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
name: Build ThunderInterfaces on Linux | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
GetFlags: | |
runs-on: ubuntu-latest | |
outputs: | |
template: ${{ steps.ThunderInterfacesLinux.outputs.template }} | |
name: Get Actions related flags from the PR | |
steps: | |
- name: Regex ThunderInterfaces | |
if: contains(github.event.pull_request.body, '[ThunderInterfaces-Linux-template:') | |
id: ThunderInterfacesLinuxRegex | |
uses: AsasInnab/regex-action@v1 | |
with: | |
regex_pattern: '(?<=\[ThunderInterfaces-Linux-template:).*(?=\])' | |
regex_flags: 'gim' | |
search_string: ${{github.event.pull_request.body}} | |
- name: Save the output in case of a valid regex | |
if: contains(github.event.pull_request.body, '[ThunderInterfaces-Linux-template:') | |
run: echo "template=${{steps.ThunderInterfacesLinuxRegex.outputs.first_match}}" >> "$GITHUB_OUTPUT" | |
- name: Save the output in case of no regex | |
if: ${{ !contains(github.event.pull_request.body, '[ThunderInterfaces-Linux-template:') }} | |
run: echo "template=master" >> "$GITHUB_OUTPUT" | |
Thunder: | |
uses: rdkcentral/Thunder/.github/workflows/Linux build template.yml@development/actions-pep668-error # change back to master | |
ThunderInterfaces: | |
needs: [Thunder, GetFlags] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print the output | |
run: echo ${{needs.GetFlags.outputs.template}} | |
- uses: jenseng/dynamic-uses@v1 | |
with: | |
uses: rdkcentral/ThunderInterfaces/.github/workflows/Linux build template.yml@${{needs.GetFlags.outputs.template}} | |
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 |