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 172159e commit 51acdf3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/Android_Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- name: Fetch submodules
run: |
if [[ "${{ env.CODE_CHANGED }}" != "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/arm64-v8a/libAlber.so" ]; then
if [[ "$CODE_CHANGED" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so" ]; then
git submodule update --init --recursive
fi
Expand Down Expand Up @@ -56,19 +56,19 @@ jobs:

- name: Configure CMake
run: |
if [[ "${{ env.CODE_CHANGED }}" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so" ]; then
if [[ "$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
- name: Build
run: |
# Skip using the cache if code has changed
if [[ "${{ env.CODE_CHANGED }}" == "true" ]] || [ -f "./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so" ]; then
if [[ "$CODE_CHANGED" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/x86_64/libAlber.so" ]; then
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 [[ "$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 @@ -140,19 +140,19 @@ jobs:

- name: Configure CMake
run: |
if [[ "${{ env.CODE_CHANGED }}" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/arm64-v8a/libAlber.so" ]; then
if [[ "$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
- name: Build
run: |
# Skip using the cache if code has changed
if [[ "${{ env.CODE_CHANGED }}" == "true" ]]; then
if [[ "$CODE_CHANGED" == "true" ]] || [ ! -f "./src/pandroid/app/src/main/jniLibs/arm64-v8a/libAlber.so" ]; then
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 [[ "$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 51acdf3

Please sign in to comment.