chore(build): use official gradle build action

This commit is contained in:
Skylot 2023-05-01 18:55:06 +01:00
parent ecbcbbe8d4
commit 835f9fb5e0
No known key found for this signature in database
GPG Key ID: 1E23F5B52567AA39
3 changed files with 19 additions and 22 deletions

View File

@ -15,7 +15,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
distribution: temurin
java-version: 11
- name: Set jadx version
@ -24,12 +24,10 @@ jobs:
JADX_VERSION="${JADX_LAST_TAG:1}.$GITHUB_RUN_NUMBER-${GITHUB_SHA:0:8}"
echo "JADX_VERSION=$JADX_VERSION" >> $GITHUB_ENV
- uses: burrunan/gradle-cache-action@v1
name: Build with Gradle
env:
TERM: dumb
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: clean dist copyExe
arguments: dist copyExe
- name: Save bundle artifact
uses: actions/upload-artifact@v3
@ -72,12 +70,10 @@ jobs:
JADX_VERSION="${JADX_LAST_TAG:1}.$GITHUB_RUN_NUMBER-${GITHUB_SHA:0:8}"
echo "JADX_VERSION=$JADX_VERSION" >> $GITHUB_ENV
- uses: gradle/gradle-build-action@v2
name: Build with Gradle
env:
TERM: dumb
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: clean dist -PbundleJRE=true
arguments: dist -PbundleJRE=true
- name: Save exe bundle artifact
uses: actions/upload-artifact@v3

View File

@ -11,18 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
distribution: temurin
java-version: 11
- uses: burrunan/gradle-cache-action@v1
name: Build with Gradle
env:
TERM: dumb
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: clean build dist copyExe --warning-mode=all
arguments: build dist copyExe

View File

@ -1,9 +1,14 @@
name: "Validate Gradle Wrapper"
on: [push]
name: Validate Gradle Wrapper
on:
push:
branches: [ master, build-test ]
pull_request:
branches: [ master ]
jobs:
validation:
name: "Validation"
name: Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3