Merge pull request #440 from RPTools/main #366
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 workflow will build a Java project with Gradle for verification purposes | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Build Verification | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- feature* | |
- release* | |
pull_request: | |
branches: | |
- main | |
- develop | |
- feature* | |
- release* | |
jobs: | |
build: | |
name: ${{ matrix.os }} w/JDK ${{ matrix.java }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macOS-latest] | |
java: [ '17' ] | |
fail-fast: false | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Cache Gradle | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-v2-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle-v2- | |
- name: Build with Gradle | |
run: ./gradlew build |