diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 5082a46..e336a23 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -37,20 +37,13 @@ jobs: with: node-version: 18.x cache: pnpm - # - name: Set up JDK environment - # uses: actions/setup-java@v3 - # with: - # distribution: 'temurin' - # java-version: '17' - # - name: Install SDKMAN - # run: | - # curl -s "https://get.sdkman.io" | bash - # source "$HOME/.sdkman/bin/sdkman-init.sh" - # sdk version - # - name: Install Kotlin 1.7.1 with SDKMAN - # run: | - # source "$HOME/.sdkman/bin/sdkman-init.sh" - # sdk install kotlin 1.7.1 + - name: Set Up JDK + uses: actions/setup-java@v3 + with: + distribution: 'zulu' # See 'Supported distributions' for available options + java-version: '11' + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 - name: Install dependencies run: pnpm install @@ -75,8 +68,9 @@ jobs: run: npx expo prebuild -p android --clean - name: Build apk run: | - cd android/app - gradle assembleRelease + cd android + chmod +x ./gradlew + ./gradle assembleRelease --no-daemon ## sign generated apk - name: Sign APK