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-01-30 20:49:19 +08:00
|
|
|
run: ./gradlew clean --info --stacktrace
|
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Build mirai-core series
|
2021-01-30 20:49:19 +08:00
|
|
|
run: ./gradlew assemble --info --stacktrace
|
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: mirai-core Tests
|
2021-01-30 20:49:19 +08:00
|
|
|
run: ./gradlew check --info --stacktrace
|
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-01-30 20:49:19 +08:00
|
|
|
run: git submodule update --init --recursive --remote
|
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-01-30 20:49:19 +08:00
|
|
|
run: ./gradlew clean --info --stacktrace
|
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Build all
|
2021-01-30 20:49:19 +08:00
|
|
|
run: ./gradlew assemble --info --stacktrace
|
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: All Tests
|
2021-01-30 20:49:19 +08:00
|
|
|
run: ./gradlew check --info --stacktrace
|