From 865f91c9367870e7b6eb513adcced50d057dad27 Mon Sep 17 00:00:00 2001 From: Rubenicos <44579213+rubenicos@users.noreply.github.com> Date: Wed, 3 Feb 2021 07:41:35 -0600 Subject: New faster placeholders --- .github/workflows/build.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build.yml (limited to '.github') 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 -- cgit v1.2.3-70-g09d2