mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
name: Build
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build-mirai-core:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- name: chmod -R 777 *
|
|
run: chmod -R 777 *
|
|
|
|
- name: Init gradle project
|
|
run: ./gradlew clean --scan
|
|
|
|
- name: Build mirai-core series
|
|
run: ./gradlew assemble --scan
|
|
|
|
- name: mirai-core Tests
|
|
run: >
|
|
./gradlew check --scan
|
|
-Dmirai.network.show.all.components=true
|
|
-Dkotlinx.coroutines.debug=on
|
|
-Dmirai.network.show.packet.details=true
|
|
build-all:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Checkout submodules
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- 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 |