Skip to content

Commit

Permalink
chore: update the building script
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tools-author committed Nov 25, 2023
1 parent 9c4a890 commit 1fd6128
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ on: push
# schedule:
# - cron: '0 0 * * *'
env:
JAVA_HOME: $JAVA_HOME_11_X64
CMAKE_MAKE_PROGRAM: ${{ github.workspace }}/resources/tools/ninja.exe
ANDROID_NDK_ROOT: $ANDROID_NDK_ROOT
ANDROID_SDK_ROOT: $ANDROID_SDK_ROOT

jobs:
build:
Expand All @@ -31,12 +28,13 @@ jobs:
- name: Build for Android
shell: cmd
run: |
set JAVA_HOME=%JAVA_HOME_11_X64%
${{ github.workspace }}\Qt\${{matrix.version}}\${{matrix.arch}}\bin\qt-cmake.bat ^
-G Ninja ^
-S . ^
-B "build\armeabi_v7a" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
-DCMAKE_MAKE_PROGRAM:FILEPATH="${{env.CMAKE_MAKE_PROGRAM}}" ^
-DCMAKE_CXX_COMPILER:FILEPATH="${{env.ANDROID_NDK_ROOT}}/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe" ^
-DANDROID_SDK_ROOT:PATH="${{env.ANDROID_SDK_ROOT}}" ^
-DANDROID_NDK_ROOT="${{env.ANDROID_NDK_ROOT}}"
-DCMAKE_CXX_COMPILER:FILEPATH="%ANDROID_NDK_ROOT%/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe" ^
-DANDROID_SDK_ROOT:PATH="%ANDROID_SDK_ROOT%" ^
-DANDROID_NDK_ROOT="%ANDROID_NDK_ROOT%"

0 comments on commit 1fd6128

Please sign in to comment.