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

chore: Build the debug version of Qt for Android. #174

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 29 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ jobs:
matrix:
image:
- alpine
- android-builder
- android-builder.arm64-v8a.debug
- android-builder.arm64-v8a.release
- debian
- fedora
- flatpak-builder
Expand All @@ -110,12 +111,34 @@ jobs:
include:
- image: windows-builder.i686
file: windows-builder
arch: i686
winearch: win32
args: |
ARCH=i686
WINEARCH=win32
- image: windows-builder.x86_64
file: windows-builder
arch: x86_64
winearch: win64
args: |
ARCH=x86_64
WINEARCH=win64
- image: android-builder.arm64-v8a.debug
file: android-builder
args: |
ANDROID_FFMPEG_ABI=arm64
ANDROID_OPENSSL_ABI=arm64
ANDROID_OPENSSL_ASM=
ANDROID_QT_ABI=arm64-v8a
ANDROID_TRIPLE=aarch64-linux-android
ANDROID_VPX_ABI=arm64-android-gcc
QT_BUILD_TYPE=debug
- image: android-builder.arm64-v8a.release
file: android-builder
args: |
ANDROID_FFMPEG_ABI=arm64
ANDROID_OPENSSL_ABI=arm64
ANDROID_OPENSSL_ASM=
ANDROID_QT_ABI=arm64-v8a
ANDROID_TRIPLE=aarch64-linux-android
ANDROID_VPX_ABI=arm64-android-gcc
QT_BUILD_TYPE=release
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
Expand All @@ -133,9 +156,7 @@ jobs:
with:
context: "{{defaultContext}}:qtox"
file: "docker/Dockerfile.${{ matrix.file || matrix.image }}"
build-args: |
ARCH=${{ matrix.arch }}
WINEARCH=${{ matrix.winearch }}
build-args: ${{ matrix.args }}
tags: toxchat/qtox:${{ matrix.image }}
cache-from: type=registry,ref=toxchat/qtox:${{ matrix.image }}
cache-to: type=inline
Expand Down
11 changes: 8 additions & 3 deletions qtox/docker/Dockerfile.android-builder
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,16 @@ RUN tar zxf <(wget -O- https://github.com/openssl/openssl/releases/download/open
&& make install_sw \
&& rm -rf /work/build

#ARG ANDROID_ABI=armeabi-v7a
ARG ANDROID_ABI=arm64-v8a
#ARG QT_BUILD_TYPE=release
ARG QT_BUILD_TYPE=debug
#ARG ANDROID_QT_ABI=armeabi-v7a
ARG ANDROID_QT_ABI=arm64-v8a
RUN tar Jxf <(wget -O- https://download.qt.io/archive/qt/6.8/6.8.0/single/qt-everywhere-src-6.8.0.tar.xz) \
&& cd qt-everywhere-src-6.8.0 \
&& ./configure -prefix "/work/android/qt" \
"-$QT_BUILD_TYPE" \
-qt-host-path /usr \
-android-abis "$ANDROID_ABI" \
-android-abis "$ANDROID_QT_ABI" \
-android-sdk "$ANDROID_SDK_HOME" \
-android-ndk "$ANDROID_NDK_ROOT" \
-android-ndk-platform "android-$ANDROID_API" \
Expand Down Expand Up @@ -206,4 +209,6 @@ RUN tar zxf <(wget -O- https://github.com/TokTok/c-toxcore/releases/download/v0.
&& cmake --install _build \
&& rm -rf /work/build

# Make .android world-writable (like /tmp) so debug signing works.
RUN ["chmod", "1777", "/work/android/sdk/.android"]
WORKDIR /qtox
Loading