Add gh actions

This commit is contained in:
destro174 2022-02-17 08:58:12 +01:00
parent fe022a02fe
commit 5042d62247
2 changed files with 27 additions and 0 deletions

23
.github/workflows/build.yml vendored Normal file
View File

@ -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

View File

@ -26,6 +26,10 @@ subprojects {
withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()
}
withType<JavaCompile> {
options.isDeprecation = true
}
}
}