From 6be24561e5cac7f27b42b4c08a8ce6595277e36f Mon Sep 17 00:00:00 2001 From: MIOGMIOG <82799665+MIOGMIOG@users.noreply.github.com> Date: Fri, 4 Mar 2022 17:01:57 +0100 Subject: [PATCH] Github actions auto compile --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..756ebeb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: build +on: [pull_request, push] + +jobs: + build: + strategy: + matrix: + # Use these Java versions + java: [ + 8 + ] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: checkout repository + uses: actions/checkout@v2 + - name: validate gradle wrapper + uses: gradle/wrapper-validation-action@v1 + - name: setup jdk ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: make gradle wrapper executable + run: chmod +x ./gradlew + - name: build + run: ./gradlew build + - name: capture build artifacts + if: ${{ runner.os == 'Linux' && matrix.java == '8' }} + uses: actions/upload-artifact@v2 + with: + name: ViaForge-1.12.2 + path: build/libs/