mirror of
https://github.com/skylot/jadx.git
synced 2024-11-23 12:50:02 +00:00
chore(build): use official gradle build action
This commit is contained in:
parent
ecbcbbe8d4
commit
835f9fb5e0
18
.github/workflows/build-artifacts.yml
vendored
18
.github/workflows/build-artifacts.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: temurin
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Set jadx version
|
- name: Set jadx version
|
||||||
@ -24,12 +24,10 @@ jobs:
|
|||||||
JADX_VERSION="${JADX_LAST_TAG:1}.$GITHUB_RUN_NUMBER-${GITHUB_SHA:0:8}"
|
JADX_VERSION="${JADX_LAST_TAG:1}.$GITHUB_RUN_NUMBER-${GITHUB_SHA:0:8}"
|
||||||
echo "JADX_VERSION=$JADX_VERSION" >> $GITHUB_ENV
|
echo "JADX_VERSION=$JADX_VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: burrunan/gradle-cache-action@v1
|
- name: Build with Gradle
|
||||||
name: Build with Gradle
|
uses: gradle/gradle-build-action@v2
|
||||||
env:
|
|
||||||
TERM: dumb
|
|
||||||
with:
|
with:
|
||||||
arguments: clean dist copyExe
|
arguments: dist copyExe
|
||||||
|
|
||||||
- name: Save bundle artifact
|
- name: Save bundle artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@ -72,12 +70,10 @@ jobs:
|
|||||||
JADX_VERSION="${JADX_LAST_TAG:1}.$GITHUB_RUN_NUMBER-${GITHUB_SHA:0:8}"
|
JADX_VERSION="${JADX_LAST_TAG:1}.$GITHUB_RUN_NUMBER-${GITHUB_SHA:0:8}"
|
||||||
echo "JADX_VERSION=$JADX_VERSION" >> $GITHUB_ENV
|
echo "JADX_VERSION=$JADX_VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: gradle/gradle-build-action@v2
|
- name: Build with Gradle
|
||||||
name: Build with Gradle
|
uses: gradle/gradle-build-action@v2
|
||||||
env:
|
|
||||||
TERM: dumb
|
|
||||||
with:
|
with:
|
||||||
arguments: clean dist -PbundleJRE=true
|
arguments: dist -PbundleJRE=true
|
||||||
|
|
||||||
- name: Save exe bundle artifact
|
- name: Save exe bundle artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
12
.github/workflows/build-test.yml
vendored
12
.github/workflows/build-test.yml
vendored
@ -11,18 +11,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: temurin
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- uses: burrunan/gradle-cache-action@v1
|
- name: Build with Gradle
|
||||||
name: Build with Gradle
|
uses: gradle/gradle-build-action@v2
|
||||||
env:
|
|
||||||
TERM: dumb
|
|
||||||
with:
|
with:
|
||||||
arguments: clean build dist copyExe --warning-mode=all
|
arguments: build dist copyExe
|
||||||
|
11
.github/workflows/gradle-wrapper-validation.yml
vendored
11
.github/workflows/gradle-wrapper-validation.yml
vendored
@ -1,9 +1,14 @@
|
|||||||
name: "Validate Gradle Wrapper"
|
name: Validate Gradle Wrapper
|
||||||
on: [push]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, build-test ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validation:
|
validation:
|
||||||
name: "Validation"
|
name: Validation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
Loading…
Reference in New Issue
Block a user