feat : add java code past to fast past java code to path Like in AS #14
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" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle for arm32 | |
run: ./gradlew assembleArm32Debug | |
- name: Build with Gradle for arm64 | |
run: ./gradlew assembleArm64Debug | |
- name: Upload arm32 APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-debug-arm32 | |
path: app/build/outputs/apk/arm32/debug/app-arm32-debug.apk | |
- name: Upload arm64 APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-debug-arm64 | |
path: app/build/outputs/apk/arm64/debug/app-arm64-debug.apk | |
- name: Build with Gradle for arm32 release | |
run: ./gradlew assembleArm32Release | |
- name: Build with Gradle for arm64 release | |
run: ./gradlew assembleArm64Release | |
- name: Upload arm32 Release APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-release-arm32 | |
path: app/build/outputs/apk/arm32/release/app-arm32-release.apk | |
- name: Upload arm64 Release APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-release-arm64 | |
path: app/build/outputs/apk/arm64/release/app-arm64-release.apk |