diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a54c4b20..154d9058 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,13 +6,13 @@ on: jobs: build: #奇怪的问题——ubuntu就是构建不了 - #runs-on: ubuntu-latest - runs-on: windows-latest + runs-on: ubuntu-latest + #runs-on: windows-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v2 - name: Cache Gradle Packages - uses: actions/cache@v3 + uses: actions/cache@v2 with: key: ${{ runner.os }}-build-${{ env.cache-name }} path: | @@ -21,7 +21,7 @@ jobs: - name: Validate Gradle Wrapper uses: gradle/wrapper-validation-action@v1 - name: Setup JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v2 with: distribution: adopt java-version: 17 @@ -43,7 +43,7 @@ jobs: if: steps.build_3.outcome == 'failure' run: ./gradlew clean build - name: Upload Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v2 with: name: Plugin Artifact path: outs/