mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-01 22:32:35 -08:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
# This workflow will build a Java project with Gradle
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
|
|
|
name: Build SlimeVR Server with Gradle
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/[email protected]
|
|
|
|
- name: Clone Slime Java Commons
|
|
uses: actions/[email protected]
|
|
with:
|
|
repository: Eirenliel/slime-java-commons
|
|
# Relative path under $GITHUB_WORKSPACE to place the repository
|
|
path: Slime Java Commons
|
|
|
|
- name: Set up JDK 11
|
|
uses: actions/[email protected]
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'adopt'
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Test with Gradle
|
|
run: ./gradlew clean test
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew clean serverJar
|
|
|
|
- name: Upload the Server JAR as a Build Artifact
|
|
uses: actions/[email protected]
|
|
with:
|
|
# Artifact name
|
|
name: "SlimeVR-Server" # optional, default is artifact
|
|
# A file, directory or wildcard pattern that describes what to upload
|
|
path: build/libs/*
|