-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from lukflug/dev
Added missing artifacts to CI
- Loading branch information
Showing
2 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 | ||
chmod +x gradlew | ||
./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 |