Skip to content

Commit

Permalink
fix: ci_build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aritra-tech committed Mar 2, 2025
1 parent e062575 commit 17a4b07
Showing 1 changed file with 35 additions and 25 deletions.
60 changes: 35 additions & 25 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,38 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Check code style
run: ./gradlew ktlintCheck --continue

- name: Build with Gradle
run: ./gradlew build

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: Notify.apk
# A file, directory or wildcard pattern that describes what to upload
path: app/build/outputs/apk/debug/app-debug.apk
- name: Checkout the code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Check code style
run: ./gradlew ktlintCheck --continue

- name: Build with Gradle
run: ./gradlew build

- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
# Artifact name
name: Notify.apk
# A file, directory or wildcard pattern that describes what to upload
path: app/build/outputs/apk/debug/app-debug.apk

0 comments on commit 17a4b07

Please sign in to comment.