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
37 changes: 35 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,44 @@ jobs:
event-type: client-sdk-android-push
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

diffuse_prep:
name: Diffuse prep (base AAR cache)
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
outputs:
base_aar_cache_hit: ${{ steps.diffuse_base_lookup.outputs.cache-hit }}
steps:
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
id: diffuse_base_lookup
with:
path: client-sdk-android/diffuse-source-file
key: diffuse-${{ github.event.pull_request.base.sha }}
lookup-only: true

- uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
if: steps.diffuse_base_lookup.outputs.cache-hit != 'true' && github.event.pull_request.head.repo.full_name == github.repository
id: find_comment_cache_miss
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: Diffuse output

- uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
if: steps.diffuse_base_lookup.outputs.cache-hit != 'true' && github.event.pull_request.head.repo.full_name == github.repository
with:
body: |
Diffuse output:

Base AAR cache miss. Please run the build job on main to generate the base AAR.
edit-mode: replace
comment-id: ${{ steps.find_comment_cache_miss.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
token: ${{ secrets.GITHUB_TOKEN }}

diffuse:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && needs.diffuse_prep.outputs.base_aar_cache_hit == 'true' }}
name: Diffuse checker
needs: build
needs: [build, diffuse_prep]
steps:
- uses: actions/setup-java@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ RELEASE_SIGNING_ENABLED=true
livekitUrl=
livekitApiKey=
livekitApiSecret=

org.gradle.configuration-cache=true
kotlin.incremental=true
org.gradle.configureondemand=true
org.gradle.daemon=true
Loading