Skip to content

Commit

Permalink
Create mc17.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lukflug authored Oct 3, 2021
1 parent 68e84ba commit cf18e87
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/mc17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 for Java 16

on: [push,pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v1
with:
java-version: 16
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*','**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: |
cd panelstudio-mc17
./gradlew build
- name: Build ExampleMod17
run: |
cd example-mod17
chmod +x gradlew
./gradlew build
- name: Upload package
uses: actions/upload-artifact@v2
with:
path: |
panelstudio*/build/libs/panelstudio-*.jar
example-mod*/build/libs/*.jar
- name: Cleanup Gradle Cache
run: |
rm -rf ~/.gradle/caches/modules-2/modules-2.lock
rm -rf ~/.gradle/caches/modules-2/gc.properties

0 comments on commit cf18e87

Please sign in to comment.