diff --git a/.github/workflows/cronet.yml b/.github/workflows/cronet.yml index c9c44d86b..f332ed4e1 100644 --- a/.github/workflows/cronet.yml +++ b/.github/workflows/cronet.yml @@ -14,6 +14,9 @@ jobs: with: fetch-depth: 1 + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + - name: Check Cronet Updates run: | echo "获取cronet最新版本" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04efc5872..e243922ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,6 +69,9 @@ jobs: echo "统一版本号" sed "/def version/c def version = \"${{ env.VERSION }}\"" $GITHUB_WORKSPACE/app/build.gradle -i + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + - name: Build With Gradle run: | echo "开始进行${{ env.product }}构建" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c85287c4c..d6f2fa452 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,6 +70,10 @@ jobs: sed '$a\RELEASE_KEY_ALIAS=legado' $GITHUB_WORKSPACE/gradle.properties -i sed '$a\RELEASE_STORE_PASSWORD=gedoor_legado' $GITHUB_WORKSPACE/gradle.properties -i sed '$a\RELEASE_KEY_PASSWORD=gedoor_legado' $GITHUB_WORKSPACE/gradle.properties -i + + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + - name: Build With Gradle run: | if [ ${{ env.type }} == 'release' ]; then