-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from psibre/testing
Upgradle
- Loading branch information
Showing
32 changed files
with
443 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build | ||
name: CI | ||
|
||
on: | ||
push: | ||
|
@@ -14,57 +14,36 @@ jobs: | |
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
java-version: | ||
java_version: | ||
- 8 | ||
- 11 | ||
- 13 | ||
- 17 | ||
exclude: | ||
- os: macos-latest | ||
java_version: 8 | ||
- os: macos-latest | ||
java_version: 13 | ||
java_version: 17 | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
# https://github.com/actions/checkout | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
|
||
# https://github.com/gradle/wrapper-validation-action | ||
- uses: gradle/wrapper-validation-action@v1 | ||
|
||
# https://github.com/actions/setup-java | ||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: ${{ matrix.java-version }} | ||
|
||
# https://github.com/actions/cache | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Install Linux prerequisites | ||
if: ${{ runner.os == 'Linux' }} | ||
run: | | ||
sudo apt update | ||
sudo apt -y install sox speech-tools | ||
distribution: zulu | ||
java-version: ${{ matrix.java_version }} | ||
|
||
- name: Install macOS prerequisites | ||
if: ${{ runner.os == 'macOS' }} | ||
run: brew install speech-tools | ||
|
||
- name: Build with Gradle | ||
- if: runner.os == 'Linux' | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false | ||
run: ./gradlew build | ||
DEBIAN_FRONTEND: noninteractive | ||
run: > | ||
sudo apt-get -qq update && | ||
sudo apt-get -qq install sox speech-tools | ||
- if: runner.os == 'macOS' | ||
run: brew install sox speech-tools | ||
|
||
- name: Cleanup Gradle Cache | ||
run: | | ||
rm -f ~/.gradle/caches/modules-2/modules-2.lock | ||
rm -f ~/.gradle/caches/modules-2/gc.properties | ||
- uses: gradle/[email protected] | ||
with: | ||
arguments: build --warning-mode all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.