diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml index 896978baf..9908d067b 100644 --- a/.github/workflows/android-build.yml +++ b/.github/workflows/android-build.yml @@ -16,6 +16,8 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 + - name: Create local.properties (to sign release apk with debug keys) + run: echo "autosignReleaseWithDebugKey=" >local.properties - name: Build forkRelease variant of app uses: eskatos/gradle-command-action@v1 with: @@ -23,6 +25,28 @@ jobs: dependencies-cache-enabled: true configuration-cache-enabled: true arguments: assembleForkRelease -PversionName="$(git describe --tags HEAD)" + - name: Archive arm64 apk + uses: actions/upload-artifact@v2 + with: + name: app-arm64-v8a-forkRelease.apk + path: app/build/outputs/apk/forkRelease/app-arm64-v8a-forkRelease.apk + - name: Archive armeabi apk + uses: actions/upload-artifact@v2 + with: + name: app-armeabi-v7a-forkRelease.apk + path: app/build/outputs/apk/forkRelease/app-armeabi-v7a-forkRelease.apk + - name: Archive x86 apk + uses: actions/upload-artifact@v2 + with: + name: app-x86-forkRelease.apk + path: app/build/outputs/apk/forkRelease/app-x86-forkRelease.apk + - name: Archive x86_64 apk + uses: actions/upload-artifact@v2 + with: + name: app-x86_64-forkRelease.apk + path: app/build/outputs/apk/forkRelease/app-x86_64-forkRelease.apk + + run-testDebug: runs-on: ubuntu-latest steps: @@ -39,6 +63,8 @@ jobs: dependencies-cache-enabled: true configuration-cache-enabled: true arguments: testDebug + + run-detekt: runs-on: ubuntu-latest steps: @@ -60,6 +86,8 @@ jobs: with: name: detekt report path: build/reports/detekt.html + + run-ktlint: runs-on: ubuntu-latest steps: @@ -76,6 +104,8 @@ jobs: dependencies-cache-enabled: true configuration-cache-enabled: true arguments: ktlint + + run-lintDebug: runs-on: ubuntu-latest steps: