mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-29 13:15:13 +01:00
33 lines
949 B
YAML
33 lines
949 B
YAML
name: ViaForge CI
|
|
on: [pull_request, push, workflow_dispatch]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
java: ["8"]
|
|
os: ["ubuntu-22.04"]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3
|
|
- name: Validate Gradle wrapper
|
|
uses: gradle/wrapper-validation-action@v1
|
|
- name: Setup JDK ${{ matrix.java }}
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: ${{ matrix.java }}
|
|
distribution: 'temurin'
|
|
- name: Make Gradle wrapper runnable on Unix
|
|
run: chmod +x ./gradlew
|
|
- name: Build
|
|
run: ./gradlew shadowJar
|
|
- name: Upload Build Artifacts
|
|
if: ${{ runner.os == 'Linux' && matrix.java == '8' }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ViaForge All-in-One
|
|
path: |
|
|
viaforge-mc112/build/libs/
|
|
viaforge-mc116/build/libs/
|