Skip to content

Commit 71111a5

Browse files
authored
Create android.yml
1 parent 3d37e1a commit 71111a5

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright (C) 2020 The Android Open Source Project
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Android CI
16+
17+
on:
18+
push:
19+
branches: [ master ]
20+
pull_request:
21+
branches: [ master ]
22+
23+
jobs:
24+
25+
build:
26+
name: Build
27+
runs-on: ubuntu-18.04
28+
29+
steps:
30+
- uses: actions/checkout@v1
31+
- name: set up JDK 1.8
32+
uses: actions/setup-java@v1
33+
with:
34+
java-version: 1.8
35+
- name: Build project
36+
run: .github/scripts/gradlew_recursive.sh assembleDebug
37+
- name: Zip artifacts
38+
run: zip -r assemble.zip . -i '**/build/*.apk' '**/build/*.aab' '**/build/*.aar' '**/build/*.so'
39+
- name: Upload artifacts
40+
uses: actions/upload-artifact@v1
41+
with:
42+
name: assemble
43+
path: assemble.zip

0 commit comments

Comments
 (0)