More workflow fixes

This commit is contained in:
Damontecres 2025-11-16 18:00:18 -05:00
parent 2256b8222c
commit 7984cdf570
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -66,8 +66,8 @@ jobs:
run: |
find app/build/outputs/apk -name '*.apk' -print0 |
while IFS= read -r -d '' line; do
# Wholphin-debug-0.2.9-62-g5c12e03-16-arm64-v8a.apk => Wholphin-debug-arm64-v8a.apk
short_name="$(echo $line | sed -E 's/-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-g[a-fA-F0-9]+-[0-9]+//')"
# Wholphin-release-0.2.9-62-g5c12e03-16-arm64-v8a.apk => Wholphin-arm64-v8a.apk
short_name="$(echo $line | sed -E 's/-release-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-g[a-fA-F0-9]+-[0-9]+//')"
echo "$line => $short_name"
cp "$line" "$short_name"
done

View file

@ -43,7 +43,7 @@ jobs:
id: buildapp
run: |
./gradlew clean assembleDebug
echo "apk=$(ls app/build/outputs/apk/debug/Wholphin-debug*.apk)" >> "$GITHUB_OUTPUT"
apks=$(find app/build/outputs/apk -name '*.apk' -print0 | tr '\0' ',' | sed 's/,$//')
- name: Tar build dirs
run: |
tar -czf build.tgz ./app/.
@ -55,6 +55,6 @@ jobs:
if-no-files-found: error
- uses: actions/upload-artifact@v5
with:
name: Wholphin-debug.apk
path: "${{ steps.buildapp.outputs.apk }}"
name: APKs
path: "${{ steps.buildapp.outputs.apks }}"
compression-level: 0