Use manual downloading of NDK
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user