diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1409bb..da93c6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,8 @@ jobs: echo "PMT_VERSION=${PMT_VERSION}" >> $GITHUB_ENV echo "PMT_VERSION_CODE=${PMT_VERSION_CODE}" >> $GITHUB_ENV echo "NDK_VERSION=${NDK_VERSION}" >> $GITHUB_ENV + echo "NDK_LINK=${NDK_LINK}" >> $GITHUB_ENV + echo "NDK_IS=${NDK_IS}" >> $GITHUB_ENV cd /home sudo git clone https://github.com/ShawkTeam/pmt -b ${PMT_VERSION} sudo chmod -R 777 pmt @@ -48,13 +50,14 @@ jobs: - name: Setup Android NDK id: setup-ndk - uses: nttld/setup-ndk@v1 - with: - ndk-version: ${{ env.NDK_VERSION }} - local-cache: false - add-to-path: false - env: - ANDROID_NDK_HOME: ${{ env.NDK_DIR }} + run: | + echo "Downloading NDK ${{ env.NDK_VERSION }}..." + aria2c "${{ env.NDK_LINK }}" + echo "Extracting..." + unzip -q *.zip && rm *.zip + mv * "${{ env.NDK_IS }}" + sudo chmod -R 777 * + working-directory: ${{ env.NDK_IN_DIR }} - name: Build pmt id: build-pmt diff --git a/build/workflow/build.config b/build/workflow/build.config index 31af039..f541b30 100755 --- a/build/workflow/build.config +++ b/build/workflow/build.config @@ -1,3 +1,5 @@ export PMT_VERSION="2.8.0" export PMT_VERSION_CODE=280 -export NDK_VERSION="r27" \ No newline at end of file +export NDK_VERSION="r27" +export NDK_IS="android-ndk" +export NDK_LINK="https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux.zip" \ No newline at end of file diff --git a/jni/Debug.o b/jni/Debug.o new file mode 100755 index 0000000..b6c5960 Binary files /dev/null and b/jni/Debug.o differ diff --git a/jni/GetState.o b/jni/GetState.o new file mode 100755 index 0000000..ffa73ab Binary files /dev/null and b/jni/GetState.o differ diff --git a/jni/Help.o b/jni/Help.o new file mode 100755 index 0000000..2eeb2d1 Binary files /dev/null and b/jni/Help.o differ diff --git a/jni/LanguageTools.o b/jni/LanguageTools.o new file mode 100755 index 0000000..7c1474b Binary files /dev/null and b/jni/LanguageTools.o differ diff --git a/jni/Languages.o b/jni/Languages.o new file mode 100755 index 0000000..455c45c Binary files /dev/null and b/jni/Languages.o differ diff --git a/jni/ListPartitions.o b/jni/ListPartitions.o new file mode 100755 index 0000000..df582b1 Binary files /dev/null and b/jni/ListPartitions.o differ diff --git a/jni/PartitionManager.o b/jni/PartitionManager.o new file mode 100755 index 0000000..52bef27 Binary files /dev/null and b/jni/PartitionManager.o differ diff --git a/jni/PartitionTool.o b/jni/PartitionTool.o new file mode 100755 index 0000000..90e634e Binary files /dev/null and b/jni/PartitionTool.o differ diff --git a/jni/Root.o b/jni/Root.o new file mode 100755 index 0000000..e35ec84 Binary files /dev/null and b/jni/Root.o differ diff --git a/jni/Tools.o b/jni/Tools.o new file mode 100755 index 0000000..41b2a8a Binary files /dev/null and b/jni/Tools.o differ diff --git a/jni/Version.o b/jni/Version.o new file mode 100755 index 0000000..1bb9394 Binary files /dev/null and b/jni/Version.o differ diff --git a/out/binary/pmt b/out/binary/pmt new file mode 100755 index 0000000..b2598b8 Binary files /dev/null and b/out/binary/pmt differ diff --git a/out/package/pmt-20240910.xz b/out/package/pmt-20240910.xz new file mode 100755 index 0000000..acb77db Binary files /dev/null and b/out/package/pmt-20240910.xz differ