2021-01-28 10:39:18 +08:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-mirai-core:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-01-30 20:49:19 +08:00
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
2021-01-30 20:49:19 +08:00
|
|
|
|
|
|
|
- name: chmod -R 777 *
|
|
|
|
run: chmod -R 777 *
|
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Init gradle project
|
2021-02-09 21:58:27 +08:00
|
|
|
run: ./gradlew clean --scan
|
2021-01-30 20:49:19 +08:00
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Build mirai-core series
|
2021-06-19 23:58:27 +08:00
|
|
|
run: ./gradlew assemble --scan
|
2021-01-30 20:49:19 +08:00
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: mirai-core Tests
|
2021-05-31 16:14:51 +08:00
|
|
|
run: >
|
2021-06-19 23:58:27 +08:00
|
|
|
./gradlew check --scan
|
2021-07-28 11:45:43 +08:00
|
|
|
-Dmirai.network.show.all.components=true
|
2021-05-31 16:20:09 +08:00
|
|
|
-Dkotlinx.coroutines.debug=on
|
2021-07-28 11:45:43 +08:00
|
|
|
-Dmirai.network.show.packet.details=true
|
2021-01-28 10:39:18 +08:00
|
|
|
build-all:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-01-30 20:34:55 +08:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Checkout submodules
|
2021-02-27 14:44:46 +08:00
|
|
|
run: git submodule update --init --recursive
|
2021-01-30 20:34:55 +08:00
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
2021-01-30 20:49:19 +08:00
|
|
|
|
|
|
|
- name: chmod -R 777 *
|
|
|
|
run: chmod -R 777 *
|
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Init gradle project
|
2021-02-09 21:58:27 +08:00
|
|
|
run: ./gradlew clean --scan
|
2021-01-30 20:49:19 +08:00
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Build all
|
2021-06-19 23:58:27 +08:00
|
|
|
run: ./gradlew assemble --scan
|
2021-01-30 20:49:19 +08:00
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: All Tests
|
2021-05-31 16:14:51 +08:00
|
|
|
run: >
|
2021-06-19 23:58:27 +08:00
|
|
|
./gradlew check --scan
|
2021-07-28 11:45:43 +08:00
|
|
|
-Dmirai.network.show.all.components=true
|
2021-05-31 16:20:09 +08:00
|
|
|
-Dkotlinx.coroutines.debug=on
|
2021-07-28 11:45:43 +08:00
|
|
|
-Dmirai.network.show.packet.details=true
|