Skip to content

Commit

Permalink
migrate gradle actions to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
TrianguloY committed Aug 21, 2024
1 parent 187641d commit 977572f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 25 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,11 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Set gradlew as executable
# for some reason the gradle-build-action doesn't do this automatically
run: chmod +x ./gradlew
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4

- name: Build & assemble with gradle
uses: gradle/gradle-build-action@v3
with:
arguments: >
build
assemble${{ env.VARIANT }}
- name: Build & assemble
run: ./gradlew build assemble${{ env.VARIANT }}

- name: Zip ${{ env.VARIANT }} apk as ${{ env.ZIP }}
# just remove the password here if you want to build the apk yourself instead of sponsoring me and getting it as a benefit :(
Expand Down
21 changes: 5 additions & 16 deletions .github/workflows/validate-gradle-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,17 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Change wrapper permissions
# for some reason the gradle-build-action doesn't do this automatically
run: chmod +x ./gradlew

- name: Build & test with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: >
build
test
- name: Build & test
run: ./gradlew build test

# the following steps will only run for PRs

- name: "[PR] Generate apk"
if: ${{ github.event_name == 'pull_request_target' }}
uses: gradle/gradle-build-action@v3
with:
arguments: >
assemble${{ env.VARIANT }}
run: ./gradlew assemble${{ env.VARIANT }}

- name: "[PR] Upload apk as artifact"
id: artifact-upload-step
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 977572f

Please sign in to comment.