mirai/.github/workflows/build.yml

43 lines
974 B
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
- 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