1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2025-01-20 23:11:12 +01:00

Try to get debug build

This commit is contained in:
luvletter2333 2021-08-08 22:15:03 +08:00
parent f527e84247
commit cd6cbd8afe
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8

View File

@ -12,6 +12,10 @@ on:
branches:
- dev
workflow_dispatch:
inputs:
artifacts:
description: 'y, if need artifacts'
required: false
jobs:
ffmpeg:
@ -315,27 +319,31 @@ jobs:
export DEBUG_BUILD=true
./gradlew TMessagesProj:assemble${{ matrix.flavor }}
# echo "APK_FILE=$(find TMessagesProj/build/outputs/apk -name '*arm64-v8a*.apk')" >> $GITHUB_ENV
# echo "APK_FILE_ARMV7=$(find TMessagesProj/build/outputs/apk -name '*armeabi*.apk')" >> $GITHUB_ENV
# echo "APK_FILE_X86=$(find TMessagesProj/build/outputs/apk -name '*x86-*.apk')" >> $GITHUB_ENV
# echo "APK_FILE_X64=$(find TMessagesProj/build/outputs/apk -name '*x86_64*.apk')" >> $GITHUB_ENV
# - uses: actions/upload-artifact@v2
# name: Upload apk (arm64-v8a)
# with:
# name: NekoX-${{ matrix.flavor }}-arm64-v8a
# path: ${{ env.APK_FILE }}
# - uses: actions/upload-artifact@v2
# name: Upload apk (armeabi-v7a)
# with:
# name: NekoX-${{ matrix.flavor }}-armeabi-v7a
# path: ${{ env.APK_FILE_ARMV7 }}
# - uses: actions/upload-artifact@v2
# name: Upload apk (x86_64)
# with:
# name: NekoX-${{ matrix.flavor }}-x86_64
# path: ${{ env.APK_FILE_X64 }}
# - uses: actions/upload-artifact@v2
# name: Upload apk (x86)
# with:
# name: NekoX-${{ matrix.flavor }}-x86
# path: ${{ env.APK_FILE_X86 }}
echo "APK_FILE=$(find TMessagesProj/build/outputs/apk -name '*arm64-v8a*.apk')" >> $GITHUB_ENV
echo "APK_FILE_ARMV7=$(find TMessagesProj/build/outputs/apk -name '*armeabi*.apk')" >> $GITHUB_ENV
echo "APK_FILE_X86=$(find TMessagesProj/build/outputs/apk -name '*x86-*.apk')" >> $GITHUB_ENV
echo "APK_FILE_X64=$(find TMessagesProj/build/outputs/apk -name '*x86_64*.apk')" >> $GITHUB_ENV
- uses: actions/upload-artifact@v2
if: github.event.inputs.artifacts == 'y'
name: Upload apk (arm64-v8a)
with:
name: NekoX-${{ matrix.flavor }}-arm64-v8a
path: ${{ env.APK_FILE }}
- uses: actions/upload-artifact@v2
if: github.event.inputs.artifacts == 'y'
name: Upload apk (armeabi-v7a)
with:
name: NekoX-${{ matrix.flavor }}-armeabi-v7a
path: ${{ env.APK_FILE_ARMV7 }}
- uses: actions/upload-artifact@v2
if: github.event.inputs.artifacts == 'y'
name: Upload apk (x86_64)
with:
name: NekoX-${{ matrix.flavor }}-x86_64
path: ${{ env.APK_FILE_X64 }}
- uses: actions/upload-artifact@v2
if: github.event.inputs.artifacts == 'y'
name: Upload apk (x86)
with:
name: NekoX-${{ matrix.flavor }}-x86
path: ${{ env.APK_FILE_X86 }}