mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 13:17:43 +02:00
GitHub Action (To retire Travis) (#2401)
* feat: attempt at github action workflow * build: run on any push/branch (github action) * fix: drop 32bit and use proper windows variable * fix: add cache system for gradle * fix: only pushes (not prs) * fix: proper windows command * fix: bye bye travis (thanks for all the fish) * style: shorten name of lanes * style: this is jdk, not jvm
This commit is contained in:
33
.github/workflows/test.yml
vendored
Normal file
33
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: CI
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-and-test-with-Java-8-and-later:
|
||||
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]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Build and test
|
||||
run: ./gradlew.bat build shadowJar proguard
|
||||
if: startsWith(matrix.os, 'windows') == true
|
||||
- name: Build and test
|
||||
run: ./gradlew build shadowJar proguard
|
||||
if: startsWith(matrix.os, 'windows') != true
|
Reference in New Issue
Block a user