Skip to content

Commit

Permalink
Merge branch 'move-debug-keystore-to-secret-droid-1431'
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Jan 30, 2025
2 parents 8f45ed0 + ff2e342 commit af3d57f
Showing 1 changed file with 10 additions and 35 deletions.
45 changes: 10 additions & 35 deletions .github/workflows/android-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,31 +82,6 @@ jobs:
outputs:
container_image: ${{ env.inner_container_image }}

generate-debug-keystore:
name: Generate debug keystore
needs: prepare
runs-on: ubuntu-latest
steps:
- name: Generate keystore
run: >-
keytool -genkey
-keystore debug.keystore
-storepass android
-alias androiddebugkey
-keypass android
-keyalg RSA
-keysize 2048
-validity 10000
-dname "CN=Android Debug,O=Android,C=US"
- name: Upload keystore
uses: actions/upload-artifact@v4
with:
name: debug-keystore
path: debug.keystore
if-no-files-found: error
retention-days: 7

build-native:
name: Build native # Used by wait for jobs.
needs: prepare
Expand Down Expand Up @@ -227,7 +202,7 @@ jobs:

build-app:
name: Build app
needs: [prepare, generate-debug-keystore]
needs: [prepare]
runs-on: ubuntu-latest
container:
image: ${{ needs.prepare.outputs.container_image }}
Expand All @@ -242,10 +217,10 @@ jobs:
with:
submodules: true

- uses: actions/download-artifact@v4
with:
name: debug-keystore
path: /root/.android
- name: Prepare dummy debug keystore
run: |
echo "${{ secrets.ANDROID_DUMMY_DEBUG_KEYSTORE }}" | \
base64 -d > /root/.android/debug.keystore
- name: Compile app
uses: burrunan/gradle-cache-action@v1
Expand Down Expand Up @@ -322,7 +297,7 @@ jobs:

build-instrumented-tests:
name: Build instrumented test packages
needs: [prepare, generate-debug-keystore]
needs: [prepare]
runs-on: ubuntu-latest
container:
image: ${{ needs.prepare.outputs.container_image }}
Expand All @@ -349,10 +324,10 @@ jobs:
with:
submodules: true

- uses: actions/download-artifact@v4
with:
name: debug-keystore
path: /root/.android
- name: Prepare dummy debug keystore
run: |
echo "${{ secrets.ANDROID_DUMMY_DEBUG_KEYSTORE }}" | \
base64 -d > /root/.android/debug.keystore
- name: Assemble instrumented test apk
uses: burrunan/gradle-cache-action@v1
Expand Down

0 comments on commit af3d57f

Please sign in to comment.