fabric-villager-overlay/.github/workflows/build.yml

32 lines
859 B
YAML
Raw Normal View History

2021-10-07 15:40:13 +00:00
# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: build
on: [pull_request, push]
jobs:
build:
strategy:
matrix:
2025-01-01 20:47:15 +00:00
java: [ 16 ]
os: [ubuntu-20.04]
2021-10-07 15:40:13 +00:00
runs-on: ${{ matrix.os }}
steps:
2025-01-01 21:11:08 +00:00
- name: Setup Java
uses: actions/setup-java@v3
2021-10-07 15:40:13 +00:00
with:
2025-01-01 21:11:08 +00:00
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Clone repository
uses: actions/checkout@v2
- name: Build
2021-10-07 15:40:13 +00:00
run: ./gradlew build
- name: capture build artifacts
2025-01-01 20:43:16 +00:00
uses: actions/upload-artifact@v3
2021-10-07 15:40:13 +00:00
with:
name: Artifacts
path: build/libs/