2020-09-13 18:28:35 +02:00
|
|
|
name: CI
|
2020-12-01 13:08:32 +01:00
|
|
|
on:
|
|
|
|
push:
|
2021-03-06 12:43:37 +01:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- '**.java'
|
|
|
|
- '**.gradle'
|
|
|
|
- 'brut.apktool/apktool-lib/src/main/resources/**'
|
|
|
|
pull_request:
|
2020-12-01 13:08:32 +01:00
|
|
|
paths:
|
|
|
|
- '**.java'
|
|
|
|
- '**.gradle'
|
|
|
|
- 'brut.apktool/apktool-lib/src/main/resources/**'
|
2020-09-13 18:28:35 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-test-with-Java-8-and-later:
|
2021-05-31 12:54:26 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-09-13 18:28:35 +02:00
|
|
|
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]
|
2021-05-31 12:54:26 +02:00
|
|
|
|
2020-09-13 18:28:35 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
2021-05-31 12:54:26 +02:00
|
|
|
key: ${{ runner.os }}-gradle-${{ matrix.java }}-${{ hashFiles('**/*.gradle*') }}
|
|
|
|
restore-keys: ${{ runner.os }}-${{ matrix.java }}-gradle-
|
|
|
|
|
2020-09-13 18:28:35 +02:00
|
|
|
- uses: actions/checkout@v2
|
2021-05-31 12:54:26 +02:00
|
|
|
|
2020-09-13 18:28:35 +02:00
|
|
|
- name: Set up JDK ${{ matrix.java }}
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
2021-05-31 12:54:26 +02:00
|
|
|
|
2020-09-13 18:28:35 +02:00
|
|
|
- name: Build and test
|
|
|
|
if: startsWith(matrix.os, 'windows') == true
|
2021-05-31 12:54:26 +02:00
|
|
|
run: ./gradlew.bat build shadowJar proguard
|
|
|
|
|
2020-09-13 18:28:35 +02:00
|
|
|
- name: Build and test
|
2021-05-31 12:54:26 +02:00
|
|
|
if: startsWith(matrix.os, 'windows') != true
|
2020-09-13 18:28:35 +02:00
|
|
|
run: ./gradlew build shadowJar proguard
|