Skip to content

chore: update the file #94

chore: update the file

chore: update the file #94

Workflow file for this run

name: build-android
on:
push:
branches:
- master
paths-ignore:
- 'doc/**'
- '*.md'
pull_request:
branches:
- master
paths-ignore:
- 'doc/**'
- '*.md'
jobs:
build:
name: Build
runs-on: ubuntu-22.04
strategy:
matrix:
#arch: [android_armv7, android_arm64_v8a, android_x86, android_x86_64]
arch: [android_armv7]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.5.3'
host: 'linux'
target: 'android'
arch: ${{ matrix.arch }}
modules: 'qtcharts qtserialbus qtserialport qtwebsockets'
- name: Build for Android
run: |
mkdir build
cd build
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/6.5.3/${{ matrix.arch }}/lib/cmake/Qt6' -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../
make