diff --git a/.github/actions/build/action.yaml b/.github/actions/build/action.yaml index 2669e388423e..def417691ea2 100644 --- a/.github/actions/build/action.yaml +++ b/.github/actions/build/action.yaml @@ -94,7 +94,12 @@ runs: # Set Ninja output format. NINJA_STATUS="[%e sec | %f/%t %u remaining | %c/sec | j%r] " - ninja -C ${GITHUB_WORKSPACE}/out/${BUILD_PLATFORM}_${{matrix.config}} ${BUILD_TARGET} + # TODO(todo): Half workers for EG AOSP build as it runs out of memory while building. + if [[ -n ${COBALT_EVERGREEN_LOADER} && "${BUILD_PLATFORM}" == "android-arm" ]]; then + ninja -j 16 -C ${GITHUB_WORKSPACE}/out/${BUILD_PLATFORM}_${{matrix.config}} ${BUILD_TARGET} + else + ninja -C ${GITHUB_WORKSPACE}/out/${BUILD_PLATFORM}_${{matrix.config}} ${BUILD_TARGET} + fi shell: bash - name: Show Sccache Stats