diff --git a/.github/workflows/bintray.yml b/.github/workflows/bintray.yml index 0bf3da9bf..719ce36bf 100644 --- a/.github/workflows/bintray.yml +++ b/.github/workflows/bintray.yml @@ -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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c609c91c9..eb02a5a16 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 6dcfa02c9..9e98c2895 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -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