Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Android CI working #7

Closed
wants to merge 10 commits into from
16 changes: 15 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ jobs:
# Run the post step to save the cache even if another step before fail
save-always: true

# - name: Fix ndk version
# # As of this commit day ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/26.3.11579264
# # We just want the ndk to be v26 for agp 8.5 / gradle 8.7
# run: |
# echo "ANDROID_NDK_HOME=" >> "$GITHUB_ENV" && \
# echo "ANDROID_NDK_ROOT=" >> "$GITHUB_ENV" && \
# echo "ANDROID_NDK=" >> "$GITHUB_ENV"
- run: mkdir -p /opt
- run: wget -q https://dl.google.com/android/repository/android-ndk-r23c-linux.zip && unzip android-ndk-r23c-linux.zip -d /opt
- name: gradle cargoNDK plugin needs this file for some reason
run: touch android/local.properties
- run: echo "ndk.dir=/opt/android-ndk-r23c" > android/local.properties


- name: Grant execute permission for gradlew
working-directory: android/
run: chmod +x gradlew
Expand All @@ -62,7 +76,7 @@ jobs:
# Artifact name
name: BuiltApks-${{ github.sha }}
# A file, directory or wildcard pattern that describes what to upload
path: android/app/build/outputs/apk/
path: android/app/build/outputs/apk/**/release/**
# The level of compression for Zlib to be applied to the artifact archive. The value can range from 0 to 9: - 0: No compression - 1: Best speed - 6: Default compression (same as GNU Gzip) - 9: Best compression Higher levels will result in better compression, but will take longer to complete. For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
#compression-level: # optional, default is 6
# If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist.
Expand Down
Loading