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:
|
2023-10-20 20:38:36 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2023-01-04 03:42:43 +01:00
|
|
|
steps:
|
2023-10-20 20:38:36 +02:00
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Validate Gradle Wrapper
|
2023-01-04 03:42:43 +01:00
|
|
|
uses: gradle/wrapper-validation-action@v1
|
2023-10-20 20:38:36 +02:00
|
|
|
- name: Set up JDK 8
|
2023-05-29 13:05:43 +02:00
|
|
|
uses: actions/setup-java@v3
|
2023-01-04 03:42:43 +01:00
|
|
|
with:
|
2023-10-20 20:38:36 +02:00
|
|
|
java-version: 8
|
2023-05-29 13:05:43 +02:00
|
|
|
distribution: 'temurin'
|
2023-10-20 20:38:36 +02:00
|
|
|
check-latest: true
|
2023-10-21 17:13:59 +02:00
|
|
|
- name: Cache Dependencies
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2023-10-20 20:38:36 +02:00
|
|
|
- name: Build with Gradle
|
2023-10-20 10:46:47 +02:00
|
|
|
run: ./gradlew shadowJar
|
2023-05-29 13:05:43 +02:00
|
|
|
- name: Upload Build Artifacts
|
|
|
|
uses: actions/upload-artifact@v3
|
2023-01-04 03:42:43 +01:00
|
|
|
with:
|
2023-10-20 18:32:52 +02:00
|
|
|
name: ViaForge All-in-One
|
|
|
|
path: |
|
2023-10-20 18:39:24 +02:00
|
|
|
viaforge-mc112/build/libs/
|
2023-10-21 14:15:07 +02:00
|
|
|
viaforge-mc114/build/libs/
|
|
|
|
viaforge-mc115/build/libs/
|
2023-10-20 18:39:24 +02:00
|
|
|
viaforge-mc116/build/libs/
|
2023-10-21 01:27:37 +02:00
|
|
|
viaforge-mc117/build/libs/
|
|
|
|
viaforge-mc118/build/libs/
|
|
|
|
viaforge-mc119/build/libs/
|
|
|
|
viaforge-mc120/build/libs/
|