File tree Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Copyright 2020 The Android Open Source Project
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+ #
16+ org.gradle.daemon =false
17+ org.gradle.parallel =true
18+ org.gradle.workers.max =2
19+ kotlin.incremental =false
20+ kotlin.compiler.execution.strategy =in-process
21+ # Controls KotlinOptions.allWarningsAsErrors.
22+ # This value used in CI and is currently set to false.
23+ # If you want to treat warnings as errors locally, set this property to true
24+ # in your ~/.gradle/gradle.properties file.
25+ warningsAsErrors =false
Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ concurrency :
9+ group : build-${{ github.ref }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ timeout-minutes : 60
16+
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v3
20+
21+ - name : Validate Gradle Wrapper
22+ uses : gradle/wrapper-validation-action@v1
23+
24+ - name : Copy CI gradle.properties
25+ run : mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
26+
27+ - name : Set up JDK 11
28+ uses : actions/setup-java@v3
29+ with :
30+ distribution : ' zulu'
31+ java-version : 11
32+
33+ - name : Setup Gradle
34+ uses : gradle/gradle-build-action@v2
35+
36+ - name : Check spotless
37+ run : ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache --stacktrace
38+
39+ - name : Check lint
40+ run : ./gradlew lintDebug --stacktrace
41+
42+ - name : Build all build type and flavor permutations
43+ run : ./gradlew assemble --stacktrace
44+
45+ # - name: Run local tests
46+ # run: ./gradlew testDebug testProdDebug --stacktrace
47+
48+ - name : Upload build outputs (APKs)
49+ uses : actions/upload-artifact@v3
50+ with :
51+ name : build-outputs
52+ path : app/build/outputs
53+
54+ - name : Upload build reports
55+ if : always()
56+ uses : actions/upload-artifact@v3
57+ with :
58+ name : build-reports
59+ path : app/build/reports
You can’t perform that action at this time.
0 commit comments