Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gruve-p committed Mar 12, 2024
1 parent 8280d54 commit da701c8
Showing 1 changed file with 47 additions and 4 deletions.
51 changes: 47 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit da701c8

Please sign in to comment.