diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6622f3461383..8f5d5d2ea5c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,7 +95,7 @@ jobs: with: name: electrum-grs-${{ github.sha }}-source-only-tarball - android-qml-all: + android-qml-arm64-v8a: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -125,18 +125,61 @@ jobs: mkdir "${TMP_KEYSTORE_FILE_PATH}" echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/electrumgrs.keystore sudo mkdir --parents /.buildozer/.gradle - sudo docker run --name electrum-grs-android-builder-cont -v $PWD:/home/user/wspace/electrum-grs -v /.buildozer/.gradle:/home/user/.gradle -v $TMP_KEYSTORE_FILE_PATH:/root/.keystore --workdir /home/user/wspace/electrum-grs electrum-grs-android-builder-img ./contrib/android/make_apk.sh qml all release ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} + sudo docker run --name electrum-grs-android-builder-cont -v $PWD:/home/user/wspace/electrum-grs -v /.buildozer/.gradle:/home/user/.gradle -v $TMP_KEYSTORE_FILE_PATH:/root/.keystore --workdir /home/user/wspace/electrum-grs electrum-grs-android-builder-img ./contrib/android/make_apk.sh qml arm64-v8a release ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: electrum-grs-${{ github.sha }}-android-qml + name: electrum-grs-${{ github.sha }}-android-arm64-v8a path: dist/*.apk if-no-files-found: error retention-days: 7 - name: Download artifacts uses: actions/download-artifact@v3 with: - name: electrum-grs-${{ github.sha }}-android-qml + name: electrum-grs-${{ github.sha }}-android-arm64-v8a + + android-qml-armeabi-v7a: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Free Disk Space (Ubuntu) + uses: gruve-p/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: true + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + docker-images: true + codeql-images: true + large-packages: true + swap-storage: true + - name: Builder image + run: docker build -t electrum-grs-android-builder-img --file contrib/android/Dockerfile . + - name: Compile Android apk + env: + ENCODED_STRING: ${{ secrets.ANDROID_SIGNING_KEY }} + run: | + TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore + mkdir "${TMP_KEYSTORE_FILE_PATH}" + echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/electrumgrs.keystore + sudo mkdir --parents /.buildozer/.gradle + sudo docker run --name electrum-grs-android-builder-cont -v $PWD:/home/user/wspace/electrum-grs -v /.buildozer/.gradle:/home/user/.gradle -v $TMP_KEYSTORE_FILE_PATH:/root/.keystore --workdir /home/user/wspace/electrum-grs electrum-grs-android-builder-img ./contrib/android/make_apk.sh qml armeabi-v7a release ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: electrum-grs-${{ github.sha }}-android-armeabi-v7a + path: dist/*.apk + if-no-files-found: error + retention-days: 7 + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + name: electrum-grs-${{ github.sha }}-android-armeabi-v7a macos: runs-on: macos-11