Skip to content

Commit

Permalink
Merge Android jobs into a single multistep job to better amortize set…
Browse files Browse the repository at this point in the history
…up time (project-chip#8464)
  • Loading branch information
bzbarsky-apple authored and drempelg committed Jul 20, 2021
1 parent 835f82b commit d5e7e18
Showing 1 changed file with 40 additions and 8 deletions.
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

0 comments on commit d5e7e18

Please sign in to comment.