Compare commits

...

2 Commits

Author SHA1 Message Date
Roberto Viola
0ac0aa7c03 Update main.yml 2026-02-06 11:48:09 +01:00
Roberto Viola
c9f0c7926a Update main.yml 2026-02-06 10:46:16 +01:00

View File

@@ -588,6 +588,13 @@ jobs:
- name: download 3rd party files for qthttpserver
run: cp qHttpServerBin/5.15.2/headers/* src/qthttpserver/src/3rdparty/http-parser/
- name: Setup build tool version variable
shell: bash
run: |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Last build tool version is: $BUILD_TOOL_VERSION
- name: Set Android NDK 21 && build
run: |
# Install NDK 21 after GitHub update
@@ -627,6 +634,33 @@ jobs:
- name: Build APK (not usable for production due to unpatched QT library)
run: cd src; androiddeployqt --input android-qdomyos-zwift-deployment-settings.json --output ${{ github.workspace }}/output/android/ --android-platform android-31 --gradle --aab
- uses: r0adkll/sign-android-release@v1
name: Sign app APK (For trusted sources)
id: sign_app
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || steps.check_permission.outputs.IS_REPO_OWNER == 'true'
with:
releaseDirectory: ${{ github.workspace }}/output/android/build/outputs/apk/debug/
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
- name: Find unsigned APK
# if: github.event_name == 'pull_request' && steps.check_permission.outputs.IS_REPO_OWNER != 'true'
id: find_apk
run: |
APK_PATH=${{ github.workspace }}/output/android/build/outputs/apk/debug/android-debug.apk
echo "UNSIGNED_APK=$APK_PATH" >> $GITHUB_OUTPUT
echo "Found unsigned APK at $APK_PATH"
- name: Archive apk
uses: actions/upload-artifact@v4
with:
name: apk
path: ${{ steps.sign_app.outputs.signedReleaseFile || steps.find_apk.outputs.UNSIGNED_APK }}
- name: Archive apk binary
uses: actions/upload-artifact@v4
with: