Arclight/.github/workflows/gradle.yml

50 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:
branches: [ master ]
pull_request:
branches: [ master ]
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 10:40:13 +00:00
- name: Cache FG
uses: actions/cache@v1
with:
path: ./arclight-coremod/build
key: ${{ runner.os }}-fg
- name: Clean
run: yes | rm -rf ./arclight-coremod/build/libs
2020-05-17 09:26:09 +00:00
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
2020-05-17 10:45:25 +00:00
run: ./gradlew idea build --no-daemon -i
2020-05-17 09:26:09 +00:00
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Arclight
path: ./arclight-coremod/build/libs/*.*