Prepare for 2.1.0 release #261
Workflow file for this run
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
name: Build | |
on: [ push ] | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: gradle/wrapper-validation-action@v1 | |
build: | |
needs: prepare | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# build and test against LTS releases | |
java: [ 8, 11, 17 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle Wrapper | |
run: ./gradlew build -x test | |
- name: Test with Gradle Wrapper | |
run: ./gradlew test | |
- name: Build simple-console example | |
run: | | |
./gradlew publishToMavenLocal | |
cd examples/simple-console | |
./gradlew build | |
- name: Upload report if failed | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Reports-JDK_${{ matrix.java }} | |
path: build/reports | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Package-JDK_${{ matrix.java }} | |
path: build/libs |