Skip to content

Fix upload problem #186

Fix upload problem

Fix upload problem #186

Workflow file for this run

name: Compile on Android
on:
push:
branches: [ feature/actions, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install Qt for Desktop
uses: jurplel/install-qt-action@v3
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-host'
version: '6.*.*'
- name: Set QT_HOST_PATH
run: |
echo QT_HOST_PATH=$Qt6_DIR >> $GITHUB_ENV
- name: Install Qt for Android
uses: jurplel/install-qt-action@v3
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-android'
target: 'android'
version: '6.*.*'
arch: 'android_arm64_v8a'
- name: Install Additional Software
run: |
sudo apt install doxygen graphviz librsvg2-bin
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "platforms;android-33" "platform-tools" "build-tools;33.0.2"
echo ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/25.1.8937393 >> $GITHUB_ENV
- name: Remove Unwanted Software
run: |
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --uninstall "platforms;android-33-ext4" "platforms;android-33-ext5" "platforms;android-34-ext8"
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "ndk;25.1.8937393"
- name: Configure
run: |
cmake -E make_directory build
$Qt6_DIR/bin/qt-cmake -DCMAKE_BUILD_TYPE:STRING=Debug -S . -B build
- name: Compile
run: |
cmake --build build
cmake --build build --target apk
cp build/src/android-build/build/outputs/apk/debug/android-build-debug.apk addTimes-android-arm64v8a.apk
- name: Upload artifacts
uses: pyTooling/Actions/releaser@r0
with:
tag: developerBuilds
token: ${{ secrets.GITHUB_TOKEN }}
files: |
addTimes-android-arm64v8a.apk