diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 9834787..2e3141a 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -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 @@ -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.