From 40a7433e9797fed75a76cf295a1c61d65614e9cf Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Mon, 30 May 2022 22:48:34 +0530 Subject: [PATCH] Extend CI Gradle caching and performance parameters A lot of default Gradle parameters are unoptimal for the best performance, this enables the configuration and build cache alongside parallel building. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1b52c66..9c7831af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - name: Restore Gradle Cache uses: actions/cache@v3 with: - path: /root/.gradle/ + path: ~/.gradle/ key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }} - name: Restore CXX Cache @@ -46,7 +46,7 @@ jobs: SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} - run: ./gradlew --stacktrace assemble + run: ./gradlew --stacktrace --configuration-cache --build-cache --parallel --configure-on-demand assemble - name: Rename APKs run: |