File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Android CI - Extensions Module
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+
8+ jobs :
9+ build-extensions :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Set up JDK
17+ uses : actions/setup-java@v4
18+ with :
19+ distribution : temurin
20+ java-version : 17
21+
22+ - name : Cache Gradle
23+ uses : actions/cache@v4
24+ with :
25+ path : |
26+ ~/.gradle/caches
27+ ~/.gradle/wrapper
28+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
29+ restore-keys : |
30+ ${{ runner.os }}-gradle-
31+
32+ - name : Set up Android SDK
33+ uses : android-actions/setup-android@v3
34+
35+ - name : Grant execute permission for Gradlew
36+ run : chmod +x gradlew
37+
38+ - name : Build Debug for Extensions Module
39+ run : ./gradlew :extensions:assembleDebug
40+
41+ - name : Run Unit Tests for Extensions Module
42+ run : ./gradlew :extensions:testDebugUnitTest
43+
44+ - name : Run Lint for Extensions Module
45+ run : ./gradlew :extensions:lint
46+
47+ # Optional: Assemble Release for Extensions Module
48+ - name : Assemble Release
49+ run : ./gradlew :extensions:assembleRelease
50+
51+ # Optional: Publish artifacts
52+ - name : Publish to Maven Local
53+ run : ./gradlew :extensions:publishReleasePublicationToMavenLocal
54+
55+ # Optional: Upload build artifacts
56+ # - name: Upload APK
57+ # uses: actions/upload-artifact@v4
58+ # with:
59+ # name: extensions-release
60+ # path: extensions/build/outputs/aar/*.aar
Original file line number Diff line number Diff line change 44[ ![ Kotlin] ( https://img.shields.io/badge/Kotlin-2.3.0-blue.svg )] ( https://kotlinlang.org/ )
55[ ![ API] ( https://img.shields.io/badge/API-27%2B-brightgreen.svg?style=flat )] ( https://android-arsenal.com/api?level=26 )
66
7- [ ![ Build Status] ( https://github.com/forteanjo/Extensions_LIbrary /actions/workflows/android.yml/badge.svg )] ( https://github.com/forteanjo/Extensions_LIbrary /actions/workflows/android.yml )
8- [ ![ Release] ( https://jitpack.io/v/forteanjo/Extensions_LIbrary .svg )] ( https://jitpack.io/#forteanjo/#Forteanjo/Extensions_LIbrary )
9- [ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/forteanjo/Extensions_LIbrary )] ( https://github.com/forteanjo/Extensions_LIbrary /releases )
7+ [ ![ Build Status] ( https://github.com/forteanjo/Extensions_Library /actions/workflows/android.yml/badge.svg )] ( https://github.com/forteanjo/Extensions_Library /actions/workflows/android.yml )
8+ [ ![ Release] ( https://jitpack.io/v/forteanjo/Extensions_Library .svg )] ( https://jitpack.io/#forteanjo/#Forteanjo/Extensions_Library )
9+ [ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/forteanjo/Extensions_Library )] ( https://github.com/forteanjo/Extensions_Library /releases )
1010
1111
1212An extensions library for use in Kotlin Android projects.
You can’t perform that action at this time.
0 commit comments