mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-03 13:51:46 +08:00
48 lines
1.1 KiB
YAML
48 lines
1.1 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 +x gradlew
|
|
run: chmod +x gradlew
|
|
- name: Init gradle project
|
|
run: ./gradlew clean
|
|
- name: Build mirai-core series
|
|
run: ./gradlew assemble
|
|
- name: mirai-core Tests
|
|
run: ./gradlew check
|
|
|
|
build-all:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Checkout submodules
|
|
uses: textbook/git-checkout-submodule-action@master
|
|
with:
|
|
remote: true
|
|
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
- name: chmod +x gradlew
|
|
run: chmod +x gradlew
|
|
- name: Init gradle project
|
|
run: ./gradlew clean
|
|
- name: Build all
|
|
run: ./gradlew assemble
|
|
- name: All Tests
|
|
run: ./gradlew check
|