From 5042d6224702c54cfda185823fdb2259544e7889 Mon Sep 17 00:00:00 2001 From: destro174 <40720638+destro174@users.noreply.github.com> Date: Thu, 17 Feb 2022 08:58:12 +0100 Subject: [PATCH] Add gh actions --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ build.gradle.kts | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..daf9307 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + if: "!contains(github.event.commits[0].message, '[ci-skip]')" + steps: + - uses: actions/checkout@v2 + - uses: gradle/wrapper-validation-action@v1 + - uses: actions/setup-java@v2 + with: + distribution: temurin + java-version: 17 + - name: Configure Git + run: git config --global user.email "no-reply@github.com" && git config --global user.name "Github Actions" + - name: Build + run: ./gradlew build --stacktrace + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: Chat.jar + path: build/libs/Chat*.jar \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 392305e..7852ec4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,6 +26,10 @@ subprojects { withType { options.encoding = Charsets.UTF_8.name() } + + withType { + options.isDeprecation = true + } } }