chore: update the file of project #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |
version: [6.5.3] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
aqtversion: '==3.1.*' | |
host: 'linux' | |
target: 'android' | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
modules: 'qtcharts qtserialbus qtserialport qtwebsockets' | |
dir: ${{ github.workspace }} | |
- name: Build for Android | |
env: | |
JAVA_HOME: $JAVA_HOME_11_X64 | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}/lib/cmake/Qt6' -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../ | |
make | |