mirai/.github/workflows/build.yml
Karlatemp b227f719a2
Fix kt compiler errors (#1159)
* Fix kt compiler errors

* Revert "Fix compiler bug, fix #1136"

This reverts commit 39f6c168

* Fix log style

Co-authored-by: Him188 <Him188@mamoe.net>
2021-04-05 22:41:26 +08:00

55 lines
1.2 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 -Pmirai.pkc.check.enable --scan
- name: mirai-core Tests
run: ./gradlew check -Pmirai.pkc.check.enable --scan
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 -Pmirai.pkc.check.enable --scan
- name: All Tests
run: ./gradlew check -Pmirai.pkc.check.enable --scan