From f4f01c000f306f35b5822feb40af4155091c8811 Mon Sep 17 00:00:00 2001 From: Max K Date: Sun, 11 Feb 2024 21:49:23 +0100 Subject: [PATCH] Use Gradle actions instead for better caching and extra features --- .github/workflows/build.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89702aa..3e679ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,9 @@ on: - main - '*' # Remove before merge +permissions: + pull-requests: write + jobs: build: name: build @@ -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 \ No newline at end of file + if-no-files-found: error + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@v3 \ No newline at end of file