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
- name: Setup Android NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r28b
add-to-path: false
env:
ANDROID_NDK_HOME: ${{ github.workspace }}
run: |
wget "https://dl.google.com/android/repository/android-ndk-r28c-linux.zip"
unzip *.zip && rm *.zip
working-directory: ${{ github.workspace }}
- name: Build And Prepare For Release
id: build
run: |
cd ${{ github.workspace }}
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 build -DCMAKE_BUILD_TYPE=Release
cd build_arm64-v8a
@@ -52,6 +49,7 @@ jobs:
zip pmt-static-armeabi-v7a.zip pmt_static
echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
echo "BUILD=${{ github.workspace }}/pmt" >> $GITHUB_ENV
working-directory: ${{ github.workspace }}
- name: Upload To GitHub Releases
id: upload-to-release