Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Android jobs into a single multistep job to better amortize setup time #8464

Merged
merged 1 commit into from
Jul 20, 2021
Merged
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
48 changes: 40 additions & 8 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ jobs:
name: Build Android
timeout-minutes: 60

strategy:
matrix:
type: [arm, arm64, x64]

env:
BUILD_TYPE: android_${{ matrix.type }}
TARGET_CPU: ${{ matrix.type }}
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64/

runs-on: ubuntu-latest
Expand All @@ -60,13 +54,51 @@ jobs:
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build libs
- name: Build arm libs
timeout-minutes: 2
run: |
./scripts/examples/android_app.sh
env:
BUILD_TYPE: android_arm
TARGET_CPU: arm
- name: Build arm App
timeout-minutes: 5
run: |
yes | "$ANDROID_HOME"/tools/bin/sdkmanager --licenses
cd src/android/CHIPTool
./gradlew build
env:
BUILD_TYPE: android_arm
TARGET_CPU: arm
- name: Build arm64 libs
timeout-minutes: 2
run: |
./scripts/examples/android_app.sh
env:
BUILD_TYPE: android_arm64
TARGET_CPU: arm64
- name: Build arm64 App
timeout-minutes: 5
run: |
yes | "$ANDROID_HOME"/tools/bin/sdkmanager --licenses
cd src/android/CHIPTool
./gradlew build
env:
BUILD_TYPE: android_arm64
TARGET_CPU: arm64
- name: Build x64 libs
timeout-minutes: 2
run: |
./scripts/examples/android_app.sh
- name: Build App
env:
BUILD_TYPE: android_x64
TARGET_CPU: x64
- name: Build x64 App
timeout-minutes: 5
run: |
yes | "$ANDROID_HOME"/tools/bin/sdkmanager --licenses
cd src/android/CHIPTool
./gradlew build
env:
BUILD_TYPE: android_x64
TARGET_CPU: x64