feat: Set Toolbars on filter activities #154
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: Android Build | |
| on: pull_request | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'zulu' | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Run Tests | |
| run: ./gradlew test | |
| - name: Build Project | |
| run: ./gradlew assemble | |
| - name: Get apk path | |
| id: apk-path-id | |
| run: echo "::set-output name=apk-path::$(find app -name "*.apk" | head -1)" | |
| shell: bash | |
| - name: Upload Default Apk | |
| uses: actions/upload-artifact@v4 | |
| id: upload | |
| with: | |
| name: PR-${{ github.event.number }} | |
| path: ${{ steps.apk-path-id.outputs.apk-path }} | |
| retention-days: 2 | |
| - name: Build GooglePlay Variant | |
| run: ./gradlew assembleGooglePlay | |
| - name: Get apk path | |
| id: google-play-apk-path-id | |
| run: echo "::set-output name=google-play-apk-path::$(find app -name "*GooglePlay*.apk" | head -1)" | |
| shell: bash | |
| - name: Upload GooglePlay Apk | |
| uses: actions/upload-artifact@v4 | |
| id: upload-googpe-play | |
| with: | |
| name: PR-${{ github.event.number }}-googleplay | |
| path: ${{ steps.google-play-apk-path-id.outputs.google-play-apk-path }} | |
| retention-days: 2 | |
| # Diabled as uploading to transfer.sh is not working. Need to find another provider or self host one to get this working again | |
| #- name: upload apk | |
| # uses: wei/curl@v1 | |
| # with: | |
| # args: --upload-file ${{ steps.apk-path-id.outputs.apk-path }} https://transfer.sh/PR-${{ github.event.number }}.apk -o apkpath.txt | |
| #- name: upload apk | |
| # id: upload-apk-path-id | |
| # run: | | |
| # echo "::set-output name=apk-path::$(cat apkpath.txt)" | |
| # shell: bash | |
| #- name: comment on PR with download link | |
| # uses: mshick/add-pr-comment@v2 | |
| # with: | |
| # message: | | |
| # **Download apk from path: ${{ steps.upload-apk-path-id.outputs.apk-path }}** |