stub for settemprate #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- uses: burrunan/gradle-cache-action@v1 | |
name: Build with Gradle | |
with: | |
job-id: android | |
arguments: build | |
- name: List Files | |
run: find . | |
- name: Upload debug APK | |
uses: actions/[email protected] | |
with: | |
name: sampleapp-debug.apk | |
path: sampleapp/build/outputs/apk/debug/sampleapp-debug.apk | |
- name: Upload release (unsigned) APK | |
uses: actions/[email protected] | |
with: | |
name: sampleapp-release-unsigned.apk | |
path: sampleapp/build/outputs/apk/release/sampleapp-release-unsigned.apk | |
- uses: burrunan/gradle-cache-action@v1 | |
name: Publish local artifacts with Gradle | |
with: | |
job-id: android | |
arguments: publishToMavenLocal | |
- name: List Files in m2 | |
run: find ~/.m2 | |
- name: Upload m2 androidLib AAR | |
uses: actions/[email protected] | |
with: | |
name: pumpx2-android.aar | |
path: ~/.m2/repository/com/jwoglom/pumpx2/pumpx2-android/*/pumpx2-android-[0-9.]*.aar | |
- name: Upload m2 androidLib source JAR | |
uses: actions/[email protected] | |
with: | |
name: pumpx2-android-sources.jar | |
path: ~/.m2/repository/com/jwoglom/pumpx2/pumpx2-android/*/pumpx2-android-[0-9.]*-sources.jar | |
- name: Upload m2 messages JAR | |
uses: actions/[email protected] | |
with: | |
name: pumpx2-messages.jar | |
path: ~/.m2/repository/com/jwoglom/pumpx2/pumpx2-messages/*/pumpx2-messages-[0-9.]*.jar | |
- name: Upload m2 shared JAR | |
uses: actions/[email protected] | |
with: | |
name: pumpx2-shared.jar | |
path: ~/.m2/repository/com/jwoglom/pumpx2/pumpx2-shared/*/pumpx2-shared-[0-9.]*.jar | |
- name: Upload m2 messages fat JAR | |
uses: actions/[email protected] | |
with: | |
name: pumpx2-messages-all.jar | |
path: ~/.m2/repository/com/jwoglom/pumpx2/pumpx2-messages/*/pumpx2-messages-[0-9.]*-all.jar | |
- name: Upload m2 messages source JAR | |
uses: actions/[email protected] | |
with: | |
name: pumpx2-messages-sources.jar | |
path: ~/.m2/repository/com/jwoglom/pumpx2/pumpx2-messages/*/pumpx2-messages-[0-9.]*-sources.jar | |
- name: Upload m2 cliparser fat JAR | |
uses: actions/[email protected] | |
with: | |
name: pumpx2-cliparser-all.jar | |
path: ~/.m2/repository/com/jwoglom/pumpx2/pumpx2-cliparser/*/pumpx2-cliparser-[0-9.]*-all.jar | |
- name: Upload generated m2 repository | |
uses: actions/[email protected] | |
with: | |
name: maven-repository.zip | |
path: | | |
~/.m2/repository/ | |
- uses: burrunan/gradle-cache-action@v1 | |
name: Unit Test | |
with: | |
job-id: android | |
arguments: testDebugUnitTest | |
- name: Android Test Report | |
uses: asadmansr/[email protected] | |
if: ${{ always() }} # IMPORTANT: run Android Test Report regardless | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | |
# - uses: burrunan/gradle-cache-action@v1 | |
# name: Run Gradle Publish (Snapshot) | |
# env: | |
# USERNAME: ${{ secrets.USERNAME }} | |
# TOKEN: ${{ secrets.TOKEN }} | |
# with: | |
# job-id: android | |
# arguments: publishAllPublicationsToGitHubPackagesRepository |