mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
29 lines
666 B
YAML
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/**'
|