Skip to content

Commit

Permalink
Use Gradle actions instead for better caching and extra features
Browse files Browse the repository at this point in the history
  • Loading branch information
Max K committed Feb 11, 2024
1 parent 9b7c4d3 commit f4f01c0
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- main
- '*' # Remove before merge

permissions:
pull-requests: write

jobs:
build:
name: build
Expand All @@ -21,14 +24,22 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
add-job-summary-as-pr-comment: always
build-scan-publish: true
build-scan-terms-of-service-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-service-agree: "yes"
- name: Make gradlew executable
run: chmod +x gradlew
- name: Build app
run: ./gradlew assembleDebug
run: ./gradlew assemble
- name: Save apk
uses: actions/upload-artifact@v4
with:
name: apk
path: app/build/outputs/apk/debug/OdinTools-*.apk
if-no-files-found: error
if-no-files-found: error
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3

0 comments on commit f4f01c0

Please sign in to comment.