mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-12 11:56:47 +01:00
Merge all actions workflows into build.yml
This commit is contained in:
parent
7bb6956304
commit
c9d28de8c1
79
.github/workflows/build.yml
vendored
79
.github/workflows/build.yml
vendored
@ -1,13 +1,60 @@
|
||||
name: Build
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.gradle'
|
||||
- 'brut.apktool/apktool-lib/src/main/resources/**'
|
||||
- '.github/workflows/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.gradle'
|
||||
- 'brut.apktool/apktool-lib/src/main/resources/**'
|
||||
- '.github/workflows/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-and-test-with-Java-8-and-later:
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: Build/Test (JDK ${{ matrix.java }}, ${{ matrix.os }})
|
||||
strategy:
|
||||
fail-fast: false
|
||||
max-parallel: 10
|
||||
matrix:
|
||||
os: [ ubuntu-latest, macOS-latest, windows-latest ]
|
||||
java: [ 8, 9, 10, 11, 12, 13, 14 ]
|
||||
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ matrix.java }}-${{ hashFiles('**/*.gradle*') }}
|
||||
restore-keys: ${{ runner.os }}-${{ matrix.java }}-gradle-
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: ${{ matrix.java }}
|
||||
|
||||
- name: Build and test
|
||||
if: startsWith(matrix.os, 'windows') == true
|
||||
run: ./gradlew.bat build shadowJar proguard
|
||||
|
||||
- name: Build and test
|
||||
if: startsWith(matrix.os, 'windows') != true
|
||||
run: ./gradlew build shadowJar proguard
|
||||
|
||||
upload-artifact:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build apktool.jar
|
||||
if: github.repository == 'iBotPeaches/Apktool' && github.ref == 'refs/heads/master'
|
||||
needs:
|
||||
- build-and-test-with-Java-8-and-later
|
||||
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
@ -34,3 +81,27 @@ jobs:
|
||||
with:
|
||||
name: apktool.jar
|
||||
path: brut.apktool/apktool-cli/build/libs/apktool-*-small.jar
|
||||
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'java' ]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
|
40
.github/workflows/codeql-analysis.yml
vendored
40
.github/workflows/codeql-analysis.yml
vendored
@ -1,40 +0,0 @@
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.gradle'
|
||||
- 'brut.apktool/apktool-lib/src/main/resources/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.gradle'
|
||||
- 'brut.apktool/apktool-lib/src/main/resources/**'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ['java']
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
52
.github/workflows/test.yml
vendored
52
.github/workflows/test.yml
vendored
@ -1,52 +0,0 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.gradle'
|
||||
- 'brut.apktool/apktool-lib/src/main/resources/**'
|
||||
- '.github/workflows/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.gradle'
|
||||
- 'brut.apktool/apktool-lib/src/main/resources/**'
|
||||
- '.github/workflows/**'
|
||||
|
||||
jobs:
|
||||
build-and-test-with-Java-8-and-later:
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: Build/Test (JDK ${{ matrix.java }}, ${{ matrix.os }})
|
||||
strategy:
|
||||
fail-fast: false
|
||||
max-parallel: 10
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||
java: [8, 9, 10, 11, 12, 13, 14]
|
||||
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ matrix.java }}-${{ hashFiles('**/*.gradle*') }}
|
||||
restore-keys: ${{ runner.os }}-${{ matrix.java }}-gradle-
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: ${{ matrix.java }}
|
||||
|
||||
- name: Build and test
|
||||
if: startsWith(matrix.os, 'windows') == true
|
||||
run: ./gradlew.bat build shadowJar proguard
|
||||
|
||||
- name: Build and test
|
||||
if: startsWith(matrix.os, 'windows') != true
|
||||
run: ./gradlew build shadowJar proguard
|
Loading…
x
Reference in New Issue
Block a user