From ad7ca54814b0534fb5316f2bae4e1b14010345a2 Mon Sep 17 00:00:00 2001 From: Hexeption Date: Thu, 8 Jul 2021 20:31:21 +0100 Subject: [PATCH] Add PR Builds --- .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..4dbbca1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Dev-Builds +on: [pull_request] +jobs: + test: + runs-on: ubuntu-20.04 + container: + image: openjdk:8-jdk + steps: + - uses: actions/checkout@v2.3.4 + with: + submodules: recursive + - uses: gradle/wrapper-validation-action@v1.0.3 + - run: chmod +x ./gradlew + - run: ./gradlew setup --parallel + - run: cd projects && ../gradlew Magma:test + build: + runs-on: ubuntu-20.04 + container: + image: openjdk:8-jdk + steps: + - uses: actions/checkout@v2.3.4 + with: + submodules: recursive + - uses: gradle/wrapper-validation-action@v1.0.3 + - run: chmod +x ./gradlew + - run: ./gradlew outputJar --parallel + env: + STABLE_BUILD: 0 + - uses: actions/upload-artifact@v2.2.2 + with: + name: Builds + path: build/distributions/*server.*