diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..a3750dc --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,36 @@ +name: Android Build + +on: + push: + branches: [ main ] + pull_request: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download Android NDK r14b + shell: powershell + run: | + Invoke-WebRequest ` + -Uri "http://dl.google.com/android/repository/android-ndk-r14b-windows-x86_64.zip" ` + -OutFile "ndk.zip" + + - name: Extract NDK + shell: powershell + run: | + Expand-Archive ndk.zip C:\ + + - name: Verify NDK path + shell: powershell + run: | + Test-Path "C:\android-ndk-r14b" + + - name: Run build script + shell: powershell + run: | + ./build.ps1 \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c21574..20ec99c 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -334,6 +334,13 @@ set(GIT_REPO "https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1") install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION .) +if(NOT UNIX) +install(FILES + $ + DESTINATION . +) +endif() + install(DIRECTORY "${CMAKE_SOURCE_DIR}/data" DESTINATION .) string(TIMESTAMP CURRENT_DATE "%Y-%m-%d")