blob: 093ce6b606a72d31a424c078a2994fa4683d9719 [file] [log] [blame]
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Android
on:
push:
pull_request:
jobs:
build:
name: Build
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
container:
image: connectedhomeip/chip-build-android:0.4.18
volumes:
- "/tmp/log_output:/tmp/test_logs"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Bootstrap
run: scripts/build/gn_bootstrap.sh
- name: Build libs
run: |
./scripts/examples/android_app.sh
- name: Build App
run: |
yes | "$ANDROID_HOME"/tools/bin/sdkmanager --licenses
cd src/android/CHIPTool
./gradlew build