Bump actions/checkout from 2 to 4 #112
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: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- 'master' | |
concurrency: | |
# On master/release, we don't want any jobs cancelled | |
# On PR branches, we cancel the job if new commits are pushed | |
# More info: https://stackoverflow.com/a/70972844/1261287 | |
group: ${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
jobs: | |
build: | |
name: 'Tests (JDK ${{ matrix.java-version }}, ${{ matrix.os }})' | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ 'ubuntu', 'windows' ] | |
java-version: [ '8.0.x', '11.0.x' ] | |
exclude: | |
- os: windows | |
# Java 8 + Windows cause build crashes for unknown reason | |
# https://github.com/gradle/gradle/issues/3093 might be relevant | |
java-version: '8.0.x' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java-version }} | |
- name: Build | |
run: ./gradlew --no-parallel build | |
- name: Build Sandbox | |
run: | | |
cd sandbox | |
./gradlew --no-parallel build |