Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BhumikaDatamatics authored Mar 29, 2024
1 parent 9552ff6 commit ffbd0f3
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
# branches:
# - main

pull_request:
push:
branches:
- main
- improveSearchResults

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -22,26 +22,27 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v1
- uses: actions/setup-node@master
with:
node-version: '16.14.0'
node-version: '21.2.0'
# node-version: '14.16.0'
# - uses: c-hive/gha-yarn-cache@v1


- name: Cache (NDK)
uses: actions/cache@v2
uses: actions/cache@v1
with:
path: ${ANDROID_HOME}/ndk/21.0.6113669
key: ndk-cache

- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;21.0.6113669'
#- name: Install NDK
# run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;21.0.6113669'

- name: Install node modules
run: |
npm install --legacy-deps=true
npm install
# --legacy-deps=true

- name: Lint
uses: Krizzu/[email protected]
Expand Down Expand Up @@ -103,8 +104,12 @@ jobs:
run: cd android && chmod +x ./gradlew

- name: build prod
run: cd android && ./gradlew clean && ./gradlew assembleprodstagingRelease --no-daemon
run: cd android && ./gradlew clean && ./gradlew assembleprodstagingRelease --no-daemon && ./gradlew wrapper && --gradle-version 8.0.1 --warning-mode all

#run: cd android && ./gradlew clean && ./gradlew wrapper && --gradle-version 8.0.1 && ./gradlew assembleprodstagingRelease --no-daemon
# run: cd android && ./gradlew clean && ./gradlew assembleprodstagingRelease --no-daemon


- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit ffbd0f3

Please sign in to comment.