From 92bce6c2c67a3257b557609e5677a8921b56177a Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 22 Mar 2022 18:41:06 +0800 Subject: [PATCH] Chore: optimize CI (#1414) * Bump checkout action to v3 * Bump setup-java action to v3 & Java 17 * Bump setup-go action to v3 * Use gradle-build-action * Go 1.18 * Insert a new line --- .github/workflows/build-unsigned.yaml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-unsigned.yaml b/.github/workflows/build-unsigned.yaml index 0c26aedf..0337a4ed 100644 --- a/.github/workflows/build-unsigned.yaml +++ b/.github/workflows/build-unsigned.yaml @@ -22,27 +22,25 @@ on: - '**.md' - 'LICENSE' - 'NOTICE' + jobs: BuildUnsigned: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: recursive - name: Setup Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: 11 - - name: Gradle cache - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle/wrapper/gradle-wrapper.properties', '**/buildSrc/src/main/kotlin/**.kt') }} + distribution: 'zulu' + java-version: 17 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Build - run: ./gradlew --no-daemon app:assembleFossRelease + uses: gradle/gradle-build-action@v2 + with: + arguments: --no-daemon app:assembleFossRelease