WorldEdit/.github/workflows/gradle.yml
2022-03-04 22:03:12 -08:00

29 lines
662 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@v3
with:
java-version: 17
cache: 'gradle'
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew build -s
- uses: actions/upload-artifact@v2
name: Archive Reports
if: always()
with:
name: reports for ${{ matrix.os }}
path: '**/build/reports/**'