Arclight/.github/workflows/gradle.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

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
run: |
./gradlew cleanBuild idea remapSpigotJar --no-daemon -i --stacktrace
./gradlew build --no-daemon -i --stacktrace
./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
path: ./build/libs/*.jar
2020-05-17 09:26:09 +00:00