添加警告原因 #647
This file contains hidden or 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: Build | |
| on: [ push, pull_request ] | |
| jobs: | |
| build-mirai: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build all | |
| run: ./gradlew assemble | |
| - name: All Tests | |
| run: > | |
| ./gradlew | |
| check | |
| -Dmirai.network.show.all.components=true | |
| -Dkotlinx.coroutines.debug=on | |
| -Dmirai.network.show.packet.details=true | |
| - name: Upload build artifacts | |
| uses: ./.github/actions/upload-build-artifacts |