Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 7e3ab7f

Browse files
committed
Update github action workflow
Change-Id: I1cc0e0ba1a5b308a7e1b07d0b9de10d31a286717
1 parent e9a69c0 commit 7e3ab7f

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed
Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,31 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: Android CI
15+
name: Build
1616

1717
on:
1818
push:
19-
branches: [ master ]
19+
branches:
20+
- main
2021
pull_request:
21-
branches: [ master ]
2222

23-
jobs:
23+
concurrency:
24+
group: build-${{ github.ref }}
25+
cancel-in-progress: true
2426

27+
jobs:
2528
build:
26-
name: Build
27-
runs-on: ubuntu-18.04
28-
29+
runs-on: ubuntu-latest
30+
timeout-minutes: 60
2931
steps:
30-
- uses: actions/checkout@v1
31-
- name: set up JDK 1.8
32-
uses: actions/setup-java@v1
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
35+
- name: Set up JDK 11
36+
uses: actions/setup-java@v3
3337
with:
34-
java-version: 1.8
38+
distribution: 'zulu'
39+
java-version: 11
40+
3541
- 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
42+
run: .github/scripts/gradlew_recursive.sh lint test build

0 commit comments

Comments
 (0)