2020-05-17 09:26:09 +00:00
|
|
|
# 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: Java CI with Gradle
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-08-17 12:49:18 +00:00
|
|
|
branches:
|
|
|
|
- '**'
|
2020-05-17 09:26:09 +00:00
|
|
|
pull_request:
|
2020-08-17 12:49:18 +00:00
|
|
|
branches:
|
|
|
|
- '**'
|
2020-05-17 09:26:09 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
2020-05-17 10:23:39 +00:00
|
|
|
- name: Cache Gradle User Files
|
2020-05-17 10:29:16 +00:00
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.gradle
|
|
|
|
key: ${{ runner.os }}-gradle-user-home
|
2020-05-17 10:23:39 +00:00
|
|
|
- name: Cache Gradle Files
|
2020-05-17 10:29:16 +00:00
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ./.gradle
|
|
|
|
key: ${{ runner.os }}-gradle-file
|
2020-05-17 09:26:09 +00:00
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
2020-05-25 04:33:39 +00:00
|
|
|
- name: Build
|
2020-05-30 10:02:34 +00:00
|
|
|
run: |
|
2021-05-22 12:39:00 +00:00
|
|
|
./gradlew cleanBuild remapSpigotJar idea --no-daemon -i --stacktrace --refresh-dependencies
|
2020-05-30 10:02:34 +00:00
|
|
|
./gradlew build collect --no-daemon -i --stacktrace
|
2020-05-17 09:26:09 +00:00
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Arclight
|
2020-05-30 10:02:34 +00:00
|
|
|
path: ./build/libs/*.jar
|
2020-05-17 09:26:09 +00:00
|
|
|
|