Skip to content

Commit

Permalink
Update Android_Build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Dec 29, 2024
1 parent e18e024 commit 172159e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/Android_Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
${{ runner.os }}-pandroid-x86_64-
- name: Setup Vulkan SDK
if: ${{ env.CODE_CHANGED == 'true' }}
uses: humbletim/[email protected]
with:
vulkan-query-version: latest
Expand All @@ -55,7 +56,7 @@ jobs:

- name: Configure CMake
run: |
if [[ "${{ env.CODE_CHANGED }}" != "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so" ]; then
if [[ "${{ env.CODE_CHANGED }}" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so" ]; then
echo "Code changed, rebuilding from scratch..."
cmake -B ${{github.workspace}}/build -DBUILD_HYDRA_CORE=1 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86_64 -DENABLE_VULKAN=0 -DENABLE_USER_BUILD=ON
fi
Expand All @@ -67,7 +68,7 @@ jobs:
rm -f ./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so
fi
if [[ "${{ env.CODE_CHANGED }}" != "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so" ]; then
if [[ "${{ env.CODE_CHANGED }}" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so" ]; then
# Apply patch for GLES compatibility
git apply ./.github/gles.patch
# Build the project with CMake
Expand Down Expand Up @@ -124,6 +125,7 @@ jobs:
${{ runner.os }}-pandroid-arm64-
- name: Setup Vulkan SDK
if: ${{ env.CODE_CHANGED == 'true' }}
uses: humbletim/[email protected]
with:
vulkan-query-version: latest
Expand All @@ -138,7 +140,7 @@ jobs:

- name: Configure CMake
run: |
if [[ "${{ env.CODE_CHANGED }}" != "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/arm64-v8a/libAlber.so" ]; then
if [[ "${{ env.CODE_CHANGED }}" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/arm64-v8a/libAlber.so" ]; then
echo "Code changed, rebuilding from scratch..."
cmake -B ${{github.workspace}}/build -DBUILD_HYDRA_CORE=1 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DENABLE_VULKAN=0 -DENABLE_USER_BUILD=ON -DCMAKE_CXX_FLAGS="-march=armv8-a+crypto"
fi
Expand All @@ -150,7 +152,7 @@ jobs:
rm -f ./src/pandroid/app/src/main/jniLibs/arm64-v8a/libAlber.so
fi
if [[ "${{ env.CODE_CHANGED }}" != "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/arm64-v8a/libAlber.so" ]; then
if [[ "${{ env.CODE_CHANGED }}" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/arm64-v8a/libAlber.so" ]; then
# Apply patch for GLES compatibility
git apply ./.github/gles.patch
Expand Down

0 comments on commit 172159e

Please sign in to comment.