Separate CI test and build into jobs

This commit is contained in:
Butterscotch!
2021-08-12 05:14:16 -04:00
committed by GitHub
parent 6c0eb07c0b
commit 11d461380d

View File

@@ -1,7 +1,7 @@
# 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
name: SlimeVR Server
on:
push:
@@ -10,8 +10,7 @@ on:
branches: [ main ]
jobs:
build:
test:
runs-on: ubuntu-latest
steps:
@@ -24,10 +23,10 @@ jobs:
# Relative path under $GITHUB_WORKSPACE to place the repository
path: Slime Java Commons
- name: Set up JDK 11
- name: Set up JDK 8
uses: actions/setup-java@v2.1.0
with:
java-version: '11'
java-version: '8'
distribution: 'adopt'
- name: Grant execute permission for gradlew
@@ -35,6 +34,28 @@ jobs:
- name: Test with Gradle
run: ./gradlew clean test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Clone Slime Java Commons
uses: actions/checkout@v2.3.4
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/setup-java@v2.1.0
with:
java-version: '8'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean serverJar