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

29 lines
812 B
YAML
Raw Permalink 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:
2025-01-01 21:16:26 +00:00
runs-on: ubuntu-latest
2021-10-07 15:40:13 +00:00
steps:
2025-01-01 21:30:33 +00:00
- name: Clone repository
uses: actions/checkout@v2
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:15:54 +00:00
distribution: temurin
2025-01-01 21:11:08 +00:00
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build
2021-10-07 15:40:13 +00:00
run: ./gradlew build
2025-01-01 21:15:54 +00:00
- 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/