BlueMap/.github/workflows/gradle.yml
Lukas Rieger (Blue) 32269cc012
Fix ci versioning
2022-07-27 11:43:38 +02:00

31 lines
732 B
YAML

name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0 # needed for versioning
- name: Set up JDK 1.17
uses: actions/setup-java@v1
with:
java-version: 17
- 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/*