mirai/.github/workflows/build.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

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
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
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: >
./gradlew check --scan
-Dmirai.network.show.all.components=true
2021-05-31 16:20:09 +08:00
-Dkotlinx.coroutines.debug=on
-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
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
run: ./gradlew clean --scan
2021-01-30 20:49:19 +08:00
2021-01-28 10:39:18 +08:00
- name: Build all
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: >
./gradlew check --scan
-Dmirai.network.show.all.components=true
2021-05-31 16:20:09 +08:00
-Dkotlinx.coroutines.debug=on
-Dmirai.network.show.packet.details=true