mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 06:10:30 +08:00
43 lines
974 B
YAML
43 lines
974 B
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:
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
submodules: recursive
|
||
|
- 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
|