update layoutpreview #419
This file contains hidden or 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: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build debug apk | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel previous runs | |
| uses: styfle/cancel-workflow-action@0.5.0 | |
| with: | |
| access_token: ${{ github.token }} | |
| - uses: actions/checkout@v3 | |
| - name: set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build debug apk | |
| # override any org.gradle.java.home with the ACTION-provided JAVA_HOME | |
| run: ./gradlew assembleDebug --no-daemon -Dorg.gradle.java.home="$JAVA_HOME" | |
| - name: Upload debug apk | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: apk-debug | |
| path: app/build/outputs/apk/debug |