-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from adigyran/main
Gradle shadow plugin for dependency resolving
- Loading branch information
Showing
3 changed files
with
77 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,63 +3,65 @@ | |
|
||
name: SlimeVR Server | ||
|
||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
test: | ||
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 8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Test with Gradle | ||
run: ./gradlew clean test | ||
- 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 8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: 'gradle' # will restore cache of dependencies and wrappers | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Test with Gradle | ||
run: ./gradlew clean test | ||
|
||
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 8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- 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/* | ||
- 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 8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: 'gradle' # will restore cache of dependencies and wrappers | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew clean shadowJar | ||
|
||
- 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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters