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 597b016 commit e18e024
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/Android_Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ jobs:
- release

steps:
- 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
git submodule update --init --recursive
fi
- name: Set BUILD_TYPE variable
run: |
echo "BUILD_TYPE=${{ matrix.build_type }}" >> $GITHUB_ENV
git diff --exit-code --quiet -- '*.cpp' '*.h' '*.hpp' || echo "CODE_CHANGED=true" >> $GITHUB_ENV
git diff --exit-code --quiet -- submodule || echo "CODE_CHANGED=true" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Fetch submodules
run: git submodule update --init --recursive

- name: Set up gradle caches
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -96,16 +99,18 @@ jobs:
- release

steps:
- 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
git submodule update --init --recursive
fi
- name: Set BUILD_TYPE variable
run: |
echo "BUILD_TYPE=${{ matrix.build_type }}" >> $GITHUB_ENV
git diff --exit-code --quiet -- '*.cpp' '*.h' '*.hpp' || echo "CODE_CHANGED=true" >> $GITHUB_ENV
git diff --exit-code --quiet -- submodule || echo "CODE_CHANGED=true" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Fetch submodules
run: git submodule update --init --recursive

git diff --exit-code --quiet -- submodule || echo "CODE_CHANGED=true" >> $GITHUB_ENV
- name: Set up gradle caches
uses: actions/cache@v4
Expand Down

0 comments on commit e18e024

Please sign in to comment.