WorldEdit/.github/workflows/gradle.yml
2021-12-13 22:15:58 -08:00

29 lines
666 B
YAML

name: Gradle Build
on: [push, pull_request]
jobs:
build:
name: Build WorldEdit on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 17
cache: 'gradle'
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew build -s
- uses: actions/upload-artifact@v2.2.4
name: Archive Reports
if: always()
with:
name: reports for ${{ matrix.os }}
path: '**/build/reports/**'