mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
26 lines
721 B
YAML
26 lines
721 B
YAML
name: Build
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- "ver/**"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
- uses: actions/setup-java@v3.6.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: 17
|
|
cache: 'gradle'
|
|
- name: Configure Git
|
|
run: git config --global user.email "no-reply@github.com" && git config --global user.name "Github Actions"
|
|
- name: Apply Patches
|
|
run: ./gradlew applyPatches --no-daemon --stacktrace
|
|
- name: Build
|
|
run: ./gradlew build --no-daemon --stacktrace
|