fix(shortcuts): do not recycle bitmap before IconCompat copies it #99
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| - "!master" | |
| - "!staging" | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout Repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: π¦ Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: "temurin" | |
| java-version: "21" | |
| cache: "gradle" | |
| - name: π¦ Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: π§Ή Check format | |
| run: | | |
| ./gradlew ktfmtCheck | |
| - name: π οΈ Compile the app | |
| run: | | |
| ./gradlew assembleDebug | |
| - name: π Check if build is needed | |
| id: check-build | |
| shell: bash | |
| run: | | |
| if git show --oneline -s HEAD | grep -q '\[build\]'; then | |
| echo "Found [build] in commit message" | |
| echo "build_apk=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "No [build] in commit message, skipping build" | |
| echo "build_apk=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: π Setup Keystore | |
| if: steps.check-build.outputs.build_apk == 'true' | |
| env: | |
| KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | |
| run: | | |
| echo $KEYSTORE_BASE64 | base64 --decode > keystore.jks | |
| - name: π Build APK | |
| if: steps.check-build.outputs.build_apk == 'true' | |
| env: | |
| KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
| KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
| KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
| run: | | |
| ./scripts/build-apk.sh | |
| - name: π€ Upload APK as artifact | |
| if: steps.check-build.outputs.build_apk == 'true' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: app-release.apk | |
| path: app/build/outputs/apk/release/app-release.apk |