mirror of
https://github.com/iBotPeaches/Apktool.git
synced 2024-11-23 04:30:04 +00: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:
parent
3101a05ef6
commit
a2a79404b8
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
|
37
.travis.yml
37
.travis.yml
@ -1,37 +0,0 @@
|
||||
env:
|
||||
global:
|
||||
- TERM=dumb
|
||||
- GROOVY_TURN_OFF_JAVA_WARNINGS=true
|
||||
|
||||
language: java
|
||||
|
||||
dist: trusty
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
jdk: openjdk8
|
||||
- os: linux
|
||||
jdk: oraclejdk8
|
||||
- os: linux
|
||||
jdk: oraclejdk11
|
||||
- os: osx
|
||||
osx_image: xcode9.2
|
||||
- os: windows
|
||||
language: shell
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle/caches/
|
||||
- $HOME/.gradle/wrapper/
|
||||
|
||||
install:
|
||||
- chmod +x ./scripts/travis-ci/clean-tests.sh
|
||||
- ./scripts/travis-ci/clean-tests.sh
|
||||
|
||||
script:
|
||||
- chmod +x ./scripts/travis-ci/run-tests.sh
|
||||
- ./scripts/travis-ci/run-tests.sh
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if [ "$TRAVIS_OS_NAME" = "windows" ]; then
|
||||
export GRADLE_OPTS=-Dorg.gradle.daemon=false
|
||||
choco install jdk8
|
||||
export PATH=$PATH:"/c/Program Files/Java/jdk1.8.0_211/bin"
|
||||
export JAVA_HOME="/c/Program Files/Java/jdk1.8.0_211"
|
||||
./gradlew.bat clean
|
||||
else
|
||||
./gradlew clean
|
||||
fi
|
||||
|
||||
exit $?
|
@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if [ "$TRAVIS_OS_NAME" = "windows" ]; then
|
||||
export GRADLE_OPTS=-Dorg.gradle.daemon=false
|
||||
export PATH=$PATH:"/c/Program Files/Java/jdk1.8.0_211/bin"
|
||||
export JAVA_HOME="/c/Program Files/Java/jdk1.8.0_211"
|
||||
./gradlew.bat build shadowJar proguard
|
||||
else
|
||||
./gradlew build shadowJar proguard
|
||||
fi
|
||||
|
||||
exit $?
|
Loading…
Reference in New Issue
Block a user