Skip to content
Open
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
77 changes: 72 additions & 5 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ on:
- main
- dev


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
runs-on: windows-latest
Expand Down Expand Up @@ -80,3 +80,70 @@ jobs:
with:
name: reports
path: lib\android_build\maesdk\build\reports

build-soong:
runs-on: ubuntu-latest
Comment on lines +84 to +85
name: Build via Soong
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
path: vendor/microsoft/cpp_client_telemetry
- name: Update submodules
working-directory: vendor/microsoft/cpp_client_telemetry
run: |
git submodule sync
git config --global submodule.lib/modules.update none
git -c protocol.version=2 submodule update --init --force --depth=1
- name: Install build prerequisites
run: |
sudo apt-get update
sudo apt-get install -y \
bc bison build-essential curl flex git \
lib32z1-dev libc6-dev-i386 \
libncurses5-dev libssl-dev libx11-dev \
libxml2-utils unzip zip zlib1g-dev
- name: Set up repo tool
run: |
mkdir -p ~/bin
curl -o ~/bin/repo https://storage.googleapis.com/git-repo-downloads/repo
chmod a+x ~/bin/repo
echo "$HOME/bin" >> $GITHUB_PATH
- name: Cache AOSP build tools
id: aosp-cache
uses: actions/cache@v4
with:
path: aosp
key: aosp-soong-android14-bazel-${{ runner.os }}
- name: Sync minimal AOSP build tools
if: steps.aosp-cache.outputs.cache-hit != 'true'
run: |
mkdir -p aosp
cd aosp
repo init \
-u https://android.googlesource.com/platform/manifest \
-b android-14.0.0_r1 \
--depth=1 \
--no-tags \
--no-clone-bundle
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 +130 to +137
- name: Place vendor module in AOSP tree
run: |
mkdir -p aosp/vendor/microsoft
ln -sfn "$(pwd)/vendor/microsoft/cpp_client_telemetry" \
aosp/vendor/microsoft/cpp_client_telemetry
- name: Build libmaesdk via Soong
run: |
cd aosp
source build/envsetup.sh
lunch aosp_arm64-eng
Comment on lines +146 to +147
SOONG_ALLOW_MISSING_DEPENDENCIES=true \
m libmaesdk -j$(nproc)
Loading