This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
fix: fix loader stuck on closing, fix #203 #539
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Gradle | |
on: | |
push: | |
branches: | |
- '*' | |
paths: | |
- "kotlin/**" | |
pull_request: | |
branches: | |
- '*' | |
paths: | |
- "kotlin/**" | |
workflow_dispatch: | |
jobs: | |
build-loader: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 15 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '15' | |
distribution: 'adopt' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
- name: chmod -R 755 * | |
run: chmod -R 755 * | |
- name: Build loader | |
run: cd ./kotlin/ && ./gradlew MiraiCP-loader:shadowJar --warning-mode all --info --stacktrace | |
build-plugin: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 15 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '15' | |
distribution: 'adopt' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
- name: chmod -R 755 * | |
run: chmod -R 755 * | |
- name: Build plugin | |
run: cd ./kotlin/ && ./gradlew MiraiCP-plugin:buildPlugin --warning-mode all --info --stacktrace |