workflow updated. #34
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: [ master ] | |
paths-ignore: | |
- '**/README.md' | |
- 'screenshots/**' | |
- '.gitignore' | |
- '.idea/**' | |
- '.run/**' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '**/README.md' | |
- 'screenshots/**' | |
- '.gitignore' | |
- '.idea/**' | |
- '.run/**' | |
jobs: | |
build: | |
name: π Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v4 | |
# https://github.com/actions/setup-java | |
- name: β Set up AWS Corretto JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: corretto | |
java-version: '17' | |
architecture: x64 | |
- name: Build module :library | |
run: ./gradlew :library:lint :library:assembleRelease | |
- name: Build module :mobile | |
run: ./gradlew :mobile:lint :mobile:bundleDebug | |
# https://github.com/actions/upload-artifact | |
- name: π¦ Retain Artifacts (Release AAR) | |
id: retain-library-aar | |
uses: actions/upload-artifact@v4 | |
with: | |
name: androidx-github | |
path: ./library/build/outputs/aar/*.aar | |
retention-days: 14 | |
- name: π¦ Retain Artifacts (Debug AAB) | |
id: retain-app-debug-aab | |
uses: actions/upload-artifact@v4 | |
with: | |
name: androidx-github | |
path: ./mobile/build/outputs/bundle/debug/*.aab | |
retention-days: 14 | |
- name: π¦ Retain Artifacts (Lint Results) | |
id: retain-lint-results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: androidx-github | |
path: | | |
./library/build/reports/* | |
./mobile/build/reports/* | |
retention-days: 14 |