Use manual downloading of NDK

This commit is contained in:
2025-08-10 20:09:06 +03:00
parent f940cc5ec5
commit 9a7092a3ba

View File

@@ -26,20 +26,17 @@ jobs:
sudo apt install make cmake extra-cmake-modules zip -y sudo apt install make cmake extra-cmake-modules zip -y
- name: Setup Android NDK - name: Setup Android NDK
uses: nttld/setup-ndk@v1
id: setup-ndk id: setup-ndk
with: run: |
ndk-version: r28b wget "https://dl.google.com/android/repository/android-ndk-r28c-linux.zip"
add-to-path: false unzip *.zip && rm *.zip
env: working-directory: ${{ github.workspace }}
ANDROID_NDK_HOME: ${{ github.workspace }}
- name: Build And Prepare For Release - name: Build And Prepare For Release
id: build id: build
run: | run: |
cd ${{ github.workspace }}
git clone https://github.com/ShawkTeam/pmt-renovated -b main ./pmt && cd pmt git clone https://github.com/ShawkTeam/pmt-renovated -b main ./pmt && cd pmt
export ANDROID_NDK="${{ github.workspace }}" export ANDROID_NDK="${{ github.workspace }}/android-ndk-r28c"
bash build.sh clean bash build.sh clean
bash build.sh build -DCMAKE_BUILD_TYPE=Release bash build.sh build -DCMAKE_BUILD_TYPE=Release
cd build_arm64-v8a cd build_arm64-v8a
@@ -52,6 +49,7 @@ jobs:
zip pmt-static-armeabi-v7a.zip pmt_static zip pmt-static-armeabi-v7a.zip pmt_static
echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
echo "BUILD=${{ github.workspace }}/pmt" >> $GITHUB_ENV echo "BUILD=${{ github.workspace }}/pmt" >> $GITHUB_ENV
working-directory: ${{ github.workspace }}
- name: Upload To GitHub Releases - name: Upload To GitHub Releases
id: upload-to-release id: upload-to-release