-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
111 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Build | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }}-latest | ||
continue-on-error: ${{ matrix.continue-on-error }} | ||
strategy: | ||
matrix: | ||
continue-on-error: [false] | ||
# We test against Java releases: | ||
# - greater than 7 | ||
# AND | ||
# - with LTS and in "Premier Support" phase | ||
# OR | ||
# - not succeeded by any other release | ||
# No Oracle JDK >11, see | ||
# https://blogs.oracle.com/java-platform-group/oracle-jdk-releases-for-java-11-and-later | ||
# https://www.oracle.com/technetwork/java/java-se-support-roadmap.html | ||
java: | ||
# LTS and in "Premier Support" as of 2019-03 (until 2022-03) | ||
- 8 | ||
# LTS and in "Premier Support" as of 2019-03 (until 2023-09) | ||
- 11 | ||
# Not succeeded as of 2021-04. Scheduled to be succeeded by | ||
# Java 17 on 2021-09-14, see http://openjdk.java.net/projects/jdk/17/ | ||
- 16 | ||
os: [ubuntu, windows] | ||
include: | ||
- continue-on-error: true | ||
os: macos | ||
java: 16 | ||
# Gradle does not yet work with Java 17. Planned for 7.3. | ||
# https://github.com/gradle/gradle/issues/16857 | ||
#- continue-on-error: true | ||
# os: windows | ||
# java: 17 | ||
#- continue-on-error: true | ||
# os: ubuntu | ||
# java: 17 | ||
env: | ||
# We only post coverage data for exactly one build to coveralls. | ||
# To pick that build from the build matrix, we designate one | ||
# Java version to be the "main" one. | ||
MAIN_JAVA: 11 | ||
# We only post coverage data for exactly one build to coveralls. | ||
# To pick that build from the build matrix, we designate one | ||
# OS to be the "main" one. | ||
MAIN_OS: ubuntu | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
architecture: x64 | ||
cache: 'gradle' | ||
|
||
- run: ./gradlew build --stacktrace | ||
if: runner.os != 'Windows' | ||
- run: .\gradlew build --stacktrace | ||
if: runner.os == 'Windows' | ||
|
||
- run: ./gradlew jacocoTestReport coveralls | ||
if: matrix.os == env.MAIN_OS && matrix.java == env.MAIN_JAVA | ||
continue-on-error: true | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
- uses: codecov/codecov-action@v1 | ||
if: matrix.os == env.MAIN_OS && matrix.java == env.MAIN_JAVA | ||
continue-on-error: true |
This file was deleted.
Oops, something went wrong.
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