mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
39 lines
841 B
YAML
39 lines
841 B
YAML
name: Build
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Checkout submodules
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: Setup JDK 11
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
|
|
- name: chmod -R 777 *
|
|
run: chmod -R 777 *
|
|
|
|
- name: Init gradle project
|
|
run: ./gradlew clean --scan
|
|
|
|
- name: Build all
|
|
run: ./gradlew assemble --scan
|
|
|
|
- name: All Tests
|
|
run: >
|
|
./gradlew check --scan
|
|
-Dmirai.network.show.all.components=true
|
|
-Dkotlinx.coroutines.debug=on
|
|
-Dmirai.network.show.packet.details=true
|
|
|
|
- name: Ensure KDoc valid
|
|
run: ./gradlew dokkaHtmlMultiModule
|