Skip to content

Commit

Permalink
Merge pull request #132 from minvws/sync/20240104-130815
Browse files Browse the repository at this point in the history
Sync public repo from private repository
  • Loading branch information
ktiniatros authored Jan 4, 2024
2 parents 8e0d30f + 6ba80c7 commit 9bb8ef8
Show file tree
Hide file tree
Showing 797 changed files with 99 additions and 59,257 deletions.
40 changes: 0 additions & 40 deletions .github/actions/build-core/action.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/actions/build-web-pdf-tools/action.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ runs:
with:
# Cache results from main and release branches only per docs
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/release' }}
- name: Build mobile core
uses: ./.github/actions/build-core
51 changes: 4 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- 'release/*'
pull_request:

env:
WEB_PDF_TOOLS_COMMIT_HASH: 530e22f23d98dc41c1611b1ecfb18719e5ab2570 # v4.1.6

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand All @@ -20,17 +17,10 @@ jobs:
- uses: actions/checkout@v3
- id: setup
uses: ./.github/actions/setup
- name: Archive mobile core dependency
uses: actions/upload-artifact@v3
with:
name: mobilecore
path: |
mobilecore/mobilecore.aar
retention-days: 2
- name: Spotless
run: ./gradlew spotlessCheck
- name: Test
run: ./gradlew testAccDebugUnitTest verifier:testAccDebugUnitTest
run: ./gradlew testAccDebugUnitTest
- name: Emulator Test
if: "!contains(github.event.pull_request.labels.*.name, 'skip-screenshot-tests')"
uses: reactivecircus/android-emulator-runner@v2
Expand All @@ -45,7 +35,6 @@ jobs:
name: test-results
path: |
holder/build/reports
verifier/build/reports
retention-days: 2

distribute:
Expand All @@ -56,8 +45,6 @@ jobs:
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
GENERATE_FDROID_BUILDS: ${{ contains(github.event.pull_request.labels.*.name, 'generate-fdroid-builds') }}
GENERATE_VERIFIER_BUILDS: ${{ contains(github.event.pull_request.labels.*.name, 'generate-verifier-builds') }}
KEYSTORE_FILE: ${{ secrets.KEYSTORE_FILE }}
runs-on: ubuntu-latest
needs: [ "build-and-test" ]
Expand All @@ -72,18 +59,11 @@ jobs:
run: |
version=$(( $GITHUB_RUN_NUMBER ))
echo VERSION_NUMBER=$version >> $GITHUB_ENV
- name: Build pdf tools
uses: ./.github/actions/build-web-pdf-tools
with:
web_pdf_tools_commit_hash: ${{ env.WEB_PDF_TOOLS_COMMIT_HASH }}
- name: Build
run: ./gradlew :holder:assemAccRelease :holder:assemProdRelease :holder:bundleProdRelease
- name: Build fdroid
if: ${{ env.GENERATE_FDROID_BUILDS == 'true' }}
run: ./gradlew assemFdroidAccRelease assemFdroidProdRelease
- name: Build verifier
if: ${{ env.GENERATE_VERIFIER_BUILDS == 'true' }}
run: ./gradlew :verifier:assemAccRelease :verifier:assemProdRelease :verifier:bundleProdRelease
- name: Clean up key store
run: rm keystore.jks
- name: Archive apks
Expand All @@ -92,15 +72,13 @@ jobs:
name: apks
path: |
holder/build/outputs/apk
verifier/build/outputs/apk
retention-days: 5
- name: Archive bundle
uses: actions/upload-artifact@v3
with:
name: bundle
path: |
holder/build/outputs/bundle
verifier/build/outputs/bundle
retention-days: 5

- name: Download all workflow run artifacts
Expand All @@ -116,44 +94,23 @@ jobs:

- name: Distribute holder acc variant
run: |
firebase appdistribution:distribute `ls apks/holder/build/outputs/apk/acc/release/holder-*.apk` \
firebase appdistribution:distribute `ls apks/acc/release/holder-*.apk` \
--app 1:168257592968:android:5df6b2057b90a30826493d \
--groups testers
- name: Distribute holder fdroid acc variant
if: ${{ env.GENERATE_FDROID_BUILDS == 'true' }}
run: |
firebase appdistribution:distribute `ls apks/holder/build/outputs/apk/fdroidAcc/release/holder-*.apk` \
firebase appdistribution:distribute `ls apks/fdroidAcc/release/holder-*.apk` \
--app 1:168257592968:android:28c578809115867926493d \
--groups testers
- name: Distribute holder prod variant
run: |
firebase appdistribution:distribute `ls apks/holder/build/outputs/apk/prod/release/holder-*.apk` \
firebase appdistribution:distribute `ls apks/prod/release/holder-*.apk` \
--app 1:168257592968:android:aaa5afb416536fdb26493d \
--groups testers
- name: Distribute verifier acc variant
if: ${{ env.GENERATE_VERIFIER_BUILDS == 'true' }}
run: |
firebase appdistribution:distribute `ls apks/verifier/build/outputs/apk/acc/release/verifier-*.apk` \
--app 1:168257592968:android:e9d445c4115a5c9d26493d \
--groups testers
- name: Distribute verifier fdroid acc variant
if: ${{ env.GENERATE_FDROID_BUILDS == 'true' }}
run: |
firebase appdistribution:distribute `ls apks/verifier/build/outputs/apk/fdroidAcc/release/verifier-*.apk` \
--app 1:168257592968:android:a5a6c5d5af1c18c726493d \
--groups testers
- name: Distribute verifier prod variant
if: ${{ env.GENERATE_VERIFIER_BUILDS == 'true' }}
run: |
firebase appdistribution:distribute `ls apks/verifier/build/outputs/apk/prod/release/verifier-*.apk` \
--app 1:168257592968:android:79363a1282863aac26493d \
--groups testers
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2

18 changes: 0 additions & 18 deletions .github/workflows/ui_tests_on_demand.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

Loading

0 comments on commit 9bb8ef8

Please sign in to comment.