BlueMapAPI/.github/workflows/build.yml

25 lines
520 B
YAML
Raw Normal View History

name: Build
2020-04-20 13:28:42 +02:00
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
2024-06-14 10:09:56 +02:00
- uses: actions/checkout@v4
2020-04-20 13:28:42 +02:00
with:
submodules: recursive
2022-08-01 23:21:32 +02:00
fetch-depth: 0 # needed for versioning
2023-09-27 23:50:42 +02:00
- name: Set up Java
2024-06-14 10:09:56 +02:00
uses: actions/setup-java@v4
2020-04-20 13:28:42 +02:00
with:
2023-09-27 23:50:42 +02:00
distribution: 'temurin'
java-version: 21
2023-09-27 23:50:42 +02:00
cache: 'gradle'
2020-04-20 13:28:42 +02:00
- name: Build with Gradle
2022-07-28 23:33:33 +02:00
run: ./gradlew clean build test
- uses: actions/upload-artifact@v4
2020-04-20 13:28:42 +02:00
with:
name: artifact
path: build/libs/*