Add Soong build to CI#1456
Open
pablo-msft wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new build-soong CI job to .github/workflows/build-android.yml that attempts to build the existing Android.bp target libmaesdk against a minimal AOSP (android-14) tree synced via repo, alongside the existing Gradle-based Android job.
Changes:
- Adds a
build-soongjob onubuntu-latestthat installs AOSP build prerequisites and therepotool. - Performs a trimmed
repo syncofbuild/soong,build/blueprint,build/make, and a handful ofprebuilts/*paths, with caching keyed onrunner.os. - Symlinks the checked-out SDK into
aosp/vendor/microsoft/cpp_client_telemetryand runslunch aosp_arm64-eng+m libmaesdkwithSOONG_ALLOW_MISSING_DEPENDENCIES=true.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+130
to
+137
| repo sync -j$(nproc) --current-branch --no-clone-bundle \ | ||
| build/soong \ | ||
| build/blueprint \ | ||
| build/make \ | ||
| prebuilts/bazel/common \ | ||
| prebuilts/build-tools \ | ||
| prebuilts/go/linux-x86 \ | ||
| prebuilts/clang/host/linux-x86 |
Comment on lines
+146
to
+147
| source build/envsetup.sh | ||
| lunch aosp_arm64-eng |
| uses: actions/cache@v4 | ||
| with: | ||
| path: aosp | ||
| key: aosp-soong-android14-bazel-${{ runner.os }} |
Comment on lines
+84
to
+85
| build-soong: | ||
| runs-on: ubuntu-latest |
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.
Asked Copilot to add a Soong build.