ViaForge/.github/workflows/build.yml

34 lines
996 B
YAML
Raw Normal View History

2023-10-20 10:46:47 +02:00
name: ViaForge CI
2023-01-04 03:42:43 +01:00
on: [pull_request, push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-22.04
2023-01-04 03:42:43 +01:00
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
2024-08-05 18:43:36 +02:00
uses: gradle/actions/wrapper-validation@v4
2024-06-05 03:57:36 +02:00
- name: Set up JDK 17
uses: actions/setup-java@v4
2023-01-04 03:42:43 +01:00
with:
2024-06-05 03:57:36 +02:00
java-version: 17
distribution: 'temurin'
check-latest: true
2024-02-04 00:51:48 +01:00
- name: Cache Dependencies
uses: actions/cache@v4
2024-02-04 00:51:48 +01:00
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
2023-10-20 10:46:47 +02:00
run: ./gradlew shadowJar
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
2023-01-04 03:42:43 +01:00
with:
2023-10-20 18:32:52 +02:00
name: ViaForge All-in-One
path: viaforge-mc*/build/libs/