Skip to content

Commit

Permalink
androind wf debug changed
Browse files Browse the repository at this point in the history
  • Loading branch information
omid-esrafilian committed Mar 31, 2024
1 parent e1a8791 commit d873a7b
Showing 1 changed file with 20 additions and 32 deletions.
52 changes: 20 additions & 32 deletions .github/workflows/android_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- '*'
paths-ignore:
- 'docs/**'
- '.github/workflows/**'

defaults:
run:
Expand Down Expand Up @@ -57,24 +58,13 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.arch }}-Release
max-size: "2G"
append-timestamp: false
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'

- name: Get all tags for correct version determination
working-directory: ${{ github.workspace }}
run: |
git fetch --all --tags -f --depth 1
- name: Install Qt for Linux
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
aqtversion: ==3.1.*
host: linux
target: desktop
dir: ${{ runner.temp }}
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d
setup-python: true
cache: false

- name: Install Qt6 for Android
uses: jurplel/install-qt-action@v3
with:
Expand All @@ -87,7 +77,7 @@ jobs:
dir: ${{ runner.temp }}
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d
setup-python: true
cache: true
cache: true

- name: Remove Android SDKs to force usage of android-33 only
run: |
Expand All @@ -96,6 +86,9 @@ jobs:
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --uninstall "platforms;android-34"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --uninstall "platforms;android-34-ext8"
- name: Create build directory
run: mkdir ${{ runner.temp }}/shadow_build_dir

- name: Install gstreamer
working-directory: ${{ github.workspace }}
run: |
Expand All @@ -105,26 +98,21 @@ jobs:
- name: Update android manifest
if: github.ref_name != 'Stable'
run: ${SOURCE_DIR}/tools/update_android_manifest_package.sh ${{ github.ref_name }}

- name: Install dependencies
run: sudo apt-get install -y ninja-build

- name: Setup env
run: echo "QT_HOST_PATH=${Qt6_DIR}/../gcc_64" >> $GITHUB_ENV

- name: Create build directory
run: mkdir ${{ runner.temp }}/shadow_build_dir
run: |
${SOURCE_DIR}/tools/update_android_manifest_package.sh ${{ github.ref_name }}
- name: Build
working-directory: ${{ runner.temp }}/shadow_build_dir
env:
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
run: |
chmod a+x ${Qt6_DIR}/bin/qt-cmake
${Qt6_DIR}/bin/qt-cmake -S ${{ env.SOURCE_DIR }} -B ${{ runner.temp }}/shadow_build_dir/ -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DANDROID_ABI=${{ matrix.eabi }} \
-DANDROID_PLATFORM=android-23 \
-DBUILD_TESTING:BOOL=OFF \
-DQT_HOST_PATH:PATH=${{ env.QT_HOST_PATH }} \
-DQT_DEBUG_FIND_PACKAGE=ON
cmake --build ${{ runner.temp }}/shadow_build_dir/ --target all
ls /home/runner/work/_temp/Qt/${{ env.QT_VERSION }}
qmake -r ${SOURCE_DIR}/qgroundcontrol.pro -spec android-clang CONFIG+=${BUILD_TYPE} CONFIG+=debug CONFIG+=installer ANDROID_ABIS="${{ matrix.eabi }}"
make -j2
- name: Upload Build File
uses: ./.github/actions/upload
with:
artifact_name: ${{ matrix.ARTIFACT }}
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit d873a7b

Please sign in to comment.