[Buildkite] Add automatic retries to workflows missing it #2423
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Build CI | |
on: | |
push: | |
branches: [master] | |
paths-ignore: | |
- 'landing/**' | |
- 'web/**' | |
- 'docs/**' | |
- 'keyserver/**' | |
- 'desktop/**' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Delete some stuff to free up disk space | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf /usr/local/share/boost | |
- name: rustup target add aarch64-linux-android arm-linux-androideabi x86_64-linux-android | |
run: rustup target add aarch64-linux-android arm-linux-androideabi x86_64-linux-android | |
- name: Install Protobuf compiler | |
working-directory: ./scripts | |
run: sudo ./install_protobuf.sh | |
- name: yarn ci-cleaninstall | |
run: yarn ci-cleaninstall | |
- name: Save ANDROID_KEY_STORE_B64 to file | |
env: | |
ANDROID_KEY_STORE_B64: ${{secrets.ANDROID_KEY_STORE_B64}} | |
run: echo "$ANDROID_KEY_STORE_B64" > ANDROID_KEY_STORE_B64.b64 | |
- name: Save ANDROID_KEY_STORE to file | |
run: base64 -d ANDROID_KEY_STORE_B64.b64 > android_key_store.keystore | |
- name: Configure gradle.properties | |
run: | | |
mkdir ~/.gradle | |
touch ~/.gradle/gradle.properties | |
echo "COMM_UPLOAD_STORE_FILE=$(pwd)/android_key_store.keystore" >> ~/.gradle/gradle.properties | |
echo "COMM_UPLOAD_KEY_ALIAS=AndroidSigningKey" >> ~/.gradle/gradle.properties | |
- name: Build with Gradle | |
working-directory: ./native/android | |
env: | |
ANDROID_SIGNING_PASSWORD: ${{secrets.ANDROID_SIGNING_PASSWORD}} | |
run: ./gradlew bundleRelease "-Dorg.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=6g" | |
- name: Disk Usage | |
run: df -h |