mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 18:45:21 +01:00
30 lines
686 B
YAML
30 lines
686 B
YAML
name: Java CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Set up JDK 1.16
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 16
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: "${{ runner.os }}-bluemap-${{ hashFiles('**/*.gradle*') }}"
|
|
restore-keys: |
|
|
${{ runner.os }}-bluemap-
|
|
- name: Build with Gradle
|
|
run: ./gradlew clean test build
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: artifacts
|
|
path: build/release/*
|