javadocs improved. #71
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 ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: π Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v3 | |
- name: Get latest Corretto URL | |
id: get-latest-corretto-url | |
run: | | |
URL=$(curl -LIs -o /dev/null -w %{url_effective} https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz) | |
echo "URL=${URL}" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
id: corretto-cache | |
name: Restore Corretto | |
with: | |
path: ./amazon-corretto-17-x64-linux-jdk.tar.gz | |
key: ${{ runner.os }}-corretto-${{ steps.get-latest-corretto-url.outputs.URL }} | |
- name: Download AWS Corretto | |
if: steps.corretto-cache.outputs.cache-hit != 'true' | |
run: wget ${{ steps.get-latest-corretto-url.outputs.URL }} | |
- name: β Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: jdkfile | |
java-version: '17' | |
architecture: x64 | |
jdkFile: ./amazon-corretto-17-x64-linux-jdk.tar.gz | |
- name: Build with Gradle | |
run: ./gradlew :mobile:bundleDebug | |
- name: π¦ Retain Artifacts (Lint Results) | |
id: retain-lint-results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: androidx-github | |
path: ./mobile/build/reports/* | |
retention-days: 14 | |
- name: π¦ Retain Artifacts (Debug AAB) | |
id: retain-debug-aab | |
uses: actions/upload-artifact@v3 | |
with: | |
name: androidx-github | |
path: ./mobile/build/outputs/bundle/debug/*.aab | |
retention-days: 14 |