Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/Build ThunderLibraries on Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ concurrency:
on:
workflow_dispatch:
push:
branches: ["main"]
branches: ["main", "R*"]
pull_request:
branches: ["main"]
branches: ["main", "R*"]

jobs:
Thunder:
uses: rdkcentral/Thunder/.github/workflows/Linux build template.yml@master

ThunderLibraries:
needs: Thunder
uses: WebPlatformForEmbedded/ThunderLibraries/.github/workflows/Linux build template.yml@main
uses: ./.github/workflows/Linux build template.yml
with:
source-repository: ${{ github.repository }}
28 changes: 27 additions & 1 deletion .github/workflows/Linux build template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ permissions:

on:
workflow_call:
inputs:
source-repository:
description: Repository containing the ThunderLibraries source
required: false
type: string
default: WebPlatformForEmbedded/ThunderLibraries

jobs:
ThunderLibraries:
Expand Down Expand Up @@ -43,11 +49,31 @@ jobs:
rm ${{matrix.build_type}}/${{matrix.build_type}}${{matrix.architecture == '32' && '_x86' || ''}}.tar.gz

# ----- Regex & checkout -----
- name: Resolve release dependency branch
id: release
shell: bash
env:
BUILD_BRANCH: ${{ github.base_ref || github.ref_name }}
REF_TYPE: ${{ github.ref_type }}
run: |
release_ref=
if [[ "$REF_TYPE" == 'branch' && "$BUILD_BRANCH" == R* ]]; then
release_ref="refs/heads/$BUILD_BRANCH"
fi
echo "ref=$release_ref" >> "$GITHUB_OUTPUT"
echo "Dependency branch: ${release_ref:-repository default}"

- name: Checkout ThunderLibraries
uses: actions/checkout@v5
with:
path: ThunderLibraries
repository: WebPlatformForEmbedded/ThunderLibraries
repository: ${{ inputs.source-repository }}
ref: ${{ github.repository != inputs.source-repository && steps.release.outputs.ref || '' }}

- name: Log source revisions
shell: bash
run: |
git -C ThunderLibraries log -1 --format='ThunderLibraries: %H'

- name: Regex ThunderLibraries
if: contains(github.event.pull_request.body, '[Options:')
Expand Down
Loading