aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..16a80b27
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,40 @@
+name: Build Plugin
+
+on: ["pull_request", "push"]
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ java: ["1.8", "11"]
+ os: ["ubuntu-18.04"]
+ runs-on: "${{ matrix.os }}"
+
+ steps:
+ - name: "Checkout Repository"
+ uses: "actions/checkout@v2.3.4"
+ - name: "Setup JDK ${{ matrix.java }}"
+ uses: "actions/setup-java@v1.4.3"
+ with:
+ java-version: "${{ matrix.java }}"
+ - name: Cache .gradle/caches
+ uses: actions/cache@v1
+ with:
+ path: ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
+ restore-keys: ${{ runner.os }}-gradle-
+ - name: Cache .gradle/wrapper
+ uses: actions/cache@v1
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
+ restore-keys: ${{ runner.os }}-gradle-wrapper-
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+ - name: Build with Gradle
+ run: ./gradlew build
+ - name: Upload Plugin
+ uses: actions/upload-artifact@master
+ with:
+ name: Quests-JDK${{ matrix.java }}
+ path: build/libs/*.jar \ No newline at end of file