-
-
Notifications
You must be signed in to change notification settings - Fork 484
35 lines (27 loc) · 991 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
push:
pull_request:
schedule:
- cron: '30 5 * * *'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;23.1.7779620" --sdk_root=${ANDROID_SDK_ROOT}
- name: Run release build
run: ./gradlew assembleRelease
- name: Run debug build
run: ./gradlew assembleDebug
- name: Upload artifact to GitHub
uses: actions/upload-artifact@v2
with:
name: RedReader-debug.apk
path: build/outputs/apk/debug/RedReader-debug.apk
- name: Run PMD
run: ./gradlew pmd
- name: Run checkstyle
run: ./gradlew checkstyle --stacktrace --info