Skip to content

Commit

Permalink
java version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-wedensday committed Apr 18, 2024
1 parent b1fb249 commit 2f0f987
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,43 @@ on:
push:
branches:
- feat/cd-workflow
# can add push and pull_request here


jobs:
build:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Java
uses: actions/setup-java@v3
uses: actions/setup-java@v2
with:
java-version: 21
distribution: adopt
cache: gradle
java-version: "18"
distribution: "adopt"
cache: "gradle"

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
node-version: '20'

- name: Run Yarn Install
run: |
cd ./packages/app-mobile/
npm i -g corepack
yarn install
yarn install
- name: Build application
run: |
cd android
./gradlew assembleRelease
cd ./packages/app-mobile/android
./gradlew assembleDebug
- name: Upload application
uses: actions/upload-artifact@v2
with:
name: app
path: android/app/build/outputs/apk/release/app-release.apk
path: ./packages/app-mobile/android/app/build/outputs/apk/debug/app-debug.apk
retention-days: 3

0 comments on commit 2f0f987

Please sign in to comment.