Folia/.github/workflows/build.yml

31 lines
958 B
YAML
Raw Normal View History

2021-08-25 06:06:30 +02:00
name: Patch and Build
2022-12-13 22:27:38 +01:00
on:
push:
branches: [ "**" ]
pull_request:
2021-08-25 06:06:30 +02:00
jobs:
build:
# Only run on PRs if the source branch is on someone else's repo
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repository
2024-11-27 16:54:37 +01:00
uses: actions/checkout@v4
2021-08-25 06:06:30 +02:00
- name: Validate Gradle wrapper
2024-11-27 16:54:37 +01:00
uses: gradle/actions/wrapper-validation@v4
2022-12-13 22:27:38 +01:00
- name: Setup Gradle
2024-11-27 16:54:37 +01:00
uses: gradle/actions/setup-gradle@v4
2021-08-25 06:06:30 +02:00
- name: Set up JDK
2024-11-27 16:54:37 +01:00
uses: actions/setup-java@v4
2021-08-25 06:06:30 +02:00
with:
distribution: 'temurin'
2024-11-27 16:54:37 +01:00
java-version: '21'
2021-08-25 06:06:30 +02:00
- name: Configure Git User Details
run: git config --global user.email "actions@github.com" && git config --global user.name "Github Actions"
- name: Apply Patches
2022-12-13 22:27:38 +01:00
run: ./gradlew applyPatches
2021-08-25 06:06:30 +02:00
- name: Build
2022-12-13 22:27:38 +01:00
run: ./gradlew build