mirror of
https://github.com/mamoe/mirai.git
synced 2026-09-01 20:28:08 +08:00
Update workflows
This commit is contained in:
8
.github/workflows/bintray.yml
vendored
8
.github/workflows/bintray.yml
vendored
@@ -21,17 +21,15 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout submodules
|
||||
uses: textbook/git-checkout-submodule-action@master
|
||||
with:
|
||||
remote: true
|
||||
run: git submodule update --init --recursive --remote
|
||||
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: chmod -R 777 *
|
||||
run: chmod -R 777 *
|
||||
|
||||
- name: Init gradle project
|
||||
run: ./gradlew clean --info
|
||||
|
||||
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@@ -9,18 +9,23 @@ jobs:
|
||||
|
||||
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: chmod -R 777 *
|
||||
run: chmod -R 777 *
|
||||
|
||||
- name: Init gradle project
|
||||
run: ./gradlew clean
|
||||
run: ./gradlew clean --info --stacktrace
|
||||
|
||||
- name: Build mirai-core series
|
||||
run: ./gradlew assemble
|
||||
run: ./gradlew assemble --info --stacktrace
|
||||
|
||||
- name: mirai-core Tests
|
||||
run: ./gradlew check
|
||||
run: ./gradlew check --info --stacktrace
|
||||
|
||||
build-all:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -29,19 +34,21 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout submodules
|
||||
uses: textbook/git-checkout-submodule-action@master
|
||||
with:
|
||||
remote: true
|
||||
run: git submodule update --init --recursive --remote
|
||||
|
||||
- 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: chmod -R 777 *
|
||||
run: chmod -R 777 *
|
||||
|
||||
- name: Init gradle project
|
||||
run: ./gradlew clean
|
||||
run: ./gradlew clean --info --stacktrace
|
||||
|
||||
- name: Build all
|
||||
run: ./gradlew assemble
|
||||
run: ./gradlew assemble --info --stacktrace
|
||||
|
||||
- name: All Tests
|
||||
run: ./gradlew check
|
||||
run: ./gradlew check --info --stacktrace
|
||||
|
||||
15
.github/workflows/doc.yml
vendored
15
.github/workflows/doc.yml
vendored
@@ -20,8 +20,9 @@ jobs:
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: chmod -R 777 *
|
||||
run: chmod -R 777 *
|
||||
- name: Gradle build
|
||||
run: ./gradlew clean build # if test's failed, don't publish
|
||||
- name: Dokka
|
||||
@@ -42,15 +43,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Checkout submodules
|
||||
run: git submodule update --init --recursive --remote
|
||||
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: chmod -R 777 *
|
||||
run: chmod -R 777 *
|
||||
- name: Gradle build
|
||||
run: ./gradlew clean build # if test's failed, don't publish
|
||||
- name: Dokka
|
||||
|
||||
Reference in New Issue
Block a user