Repository navigation
Automate releases from webrtc-build - #62
Merged
Merged
Conversation
prepare-release opens release/<version> when webrtc-build publishes a release (repository_dispatch webrtc-release) or by hand; release publishes the GitHub release from the merged PR with the verified binaries and their .shasum files.
davidliu
approved these changes
Nov 18, 2026
By default a newer run in the release concurrency group cancels the pending one, which would leave that merged release unpublished. queue: max keeps every waiting run (cancel-in-progress stays false).
…patch A replayed webrtc-release notification for a release whose PR was already merged added a second CHANGES.md entry and opened a new PR for the same version. Leave the files unchanged when VERSION_NAME already matches or CHANGES.md has the entry, so no PR is opened. Outstanding release PRs are regenerated from the base branch and still update. Also require a two-digit patch, as in webrtc-build.
cloudwebrtc
added a commit
to webrtc-sdk/webrtc-build
that referenced
this pull request
Nov 19, 2026
## Summary
- **One build script.** `scripts/build.py` replaces the per-target
shell/Docker scripts for every shipped target: `apple*`, `android*`, and
the libwebrtc Linux/Windows builds moved from webrtc-sdk/libwebrtc.
Every package is a single-layer file with a `.shasum` (sha256).
- **Parallel CI.** Each platform syncs once, then compiles in parallel:
one job per Apple slice and per Android ABI, then an assemble job per
package.
- **Linux source cache** on a Namespace volume, shared by android,
libwebrtc Linux and unit tests. With the same commit the sync is
skipped. With the same `DEPS` only `src` is checked out (40 s). Build
outputs and test resources stay out of the cache.
- **Release flow driven by PRs.** `release-pr` opens
`release/<version>`. `release-pr-refresh` keeps it on the newest webrtc
commit. Merging it publishes `m<version>` and notifies Specs and
android.
## Flow
```mermaid
flowchart TD
A["Run release-pr with a version, e.g. 150.7871.08"] --> B["PR release/<version> in webrtc-build<br/>VERSION = newest webrtc commit, commit list in body"]
W["Push to webrtc-sdk/webrtc"] -. "webrtc-updated / hourly" .-> R["release-pr-refresh<br/>bump commit, refresh list"]
R --> B
B --> C["build on the PR"]
subgraph BUILD["build.yml"]
direction LR
SA["gclient sync (apple)"] --> AS["33 jobs: 3 variants x 11 slices"] --> AA["3 xcframework zips"]
SL["gclient sync (linux)<br/>cached"] --> AN["12 jobs: 3 variants x 4 ABIs"] --> AR["3 aars"]
LW["libwebrtc linux / windows<br/>x64 + arm64"]
end
C --> BUILD
BUILD --> M{"Merge PR"}
M --> REL["release: m<version><br/>packages + .shasum"]
REL --> X["LiveKitWebRTC to livekit/webrtc-xcframework"]
REL -- "repository_dispatch webrtc-release" --> S["Specs: bump PR"]
REL -- "repository_dispatch webrtc-release" --> D["android: bump PR"]
S -- merge --> S2["GitHub release + CocoaPods"]
D -- merge --> D2["v<version> release + Maven"]
```
## Build time
"Before" is the last 3 successful build runs on main.
| | Before | After |
|---|---|---|
| Full build | 3h20m – 3h50m | 45 min (66 min when macOS runners queue)
|
| Apple, per package | 2h40m – 3h50m | 45 – 58 min |
| Android, per package | 69 – 86 min | 10 – 22 min |
## Testing
Run in test copies of this repository, Specs and android, built from a
fork of webrtc-sdk/webrtc:
- Full release with real apple and android packages: merge to published
release in 66 min, with 6 packages, each verified with `shasum -c`.
`LiveKitWebRTC.xcframework.zip` matches m150.7871.06 in slices and size.
- Release flow end to end with dry-run packages. Release PRs are opened
by the GitHub App, refreshed and pinned, then merged. The release is
published and the dispatch opens bump PRs in Specs and android.
- `sync` on all three hosts (cold, warm, `DEPS` fast path, skip, forced)
and `rtc_unittests` on Linux, macOS and Windows.
- libwebrtc Linux and Windows builds (x64 and arm64) passed, run alone
with the new `platforms` input of `build`.
## Notes
- Release PRs and the downstream dispatch use the `webrtc-sdk-release`
GitHub App, so release PRs trigger `build`. The App is installed on this
repository, Specs and android, and its variable and secret are set at
org level. No further setup is needed.
- Cleanup: the old build scripts and docs are left in place for now.
Once this flow has worked correctly in production, a follow-up PR will
remove `build/` and the outdated files: `docs/build.md`,
`docs/windows.md`, `webrtc_version.yaml` and
`webrtc_build_settings.yaml`.
- Follow-up: a workflow in webrtc-sdk/webrtc that sends `webrtc-updated`
on push. Until then `release-pr-refresh` polls hourly.
Related: webrtc-sdk/Specs#42, webrtc-sdk/android#62.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Automates releases from webrtc-sdk/webrtc-build. Nothing has to be downloaded or uploaded by hand.
prepare-releaseruns onrepository_dispatch: webrtc-release, which webrtc-build sends after publishingm<version>. It can also be started by hand with a version. It opensrelease/<version>, which:releaseruns when that PR is merged:.shasumfiles;.shasumfiles, as this repository's GitHub release;The version-bump logic lives in
.github/scripts/prepare_release.pyso it can be run locally.Testing
Tested end to end in a fork against a test copy of webrtc-build:
prepare-release, then merge, thenrelease. The test fork has no publishing secrets, so the publish step was skipped there.The
repository_dispatchtrigger itself is untested until the release GitHub App is configured in webrtc-build and installed on this repository.Details
gradle.properties(VERSION_NAME),README.md, andCHANGES.md(including the webrtc commit the binaries were built from).releaseuploadslibwebrtc.aar,libwebrtc_prefixed.aarandlibwebrtc_prefixed_stripped.aar, with their.shasumfiles, tov<version>. It then callspublish.yml, which still downloads them from that release.publish.ymlcan now be called with a ref. It skips when the Nexus or signing secrets are missing (forks), and still runs onv*tags.fetch-webrtc-artifacts.ymlis no longer needed once this is in use, and can be removed in a follow-up.Related: webrtc-sdk/webrtc-build#87
prepare-releaseopens its PR with a token from the same GitHub App (variableRELEASE_APP_CLIENT_ID, secretRELEASE_APP_PRIVATE_KEY), so the PR runs this repository's checks. Without the App it usesGITHUB_TOKEN, and the PR's checks have to be started by hand.