From a79f883a0f8adc5f285a43d1203697b36e81afd8 Mon Sep 17 00:00:00 2001 From: EvadeMaster <93124920+EvadeMaster@users.noreply.github.com> Date: Sun, 26 Mar 2023 20:02:56 +0700 Subject: [PATCH] ci: use caching to speed up workflows (#760) Use caching to speed up workflows: 9-14 minutes (ish) to 6-8 minutes (ish) Commits: * ci(release): use GitHub cache * ci(release): restore signing --- .github/workflows/pull-request-build.yml | 2 ++ .github/workflows/release.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-build.yml b/.github/workflows/pull-request-build.yml index d93189b9..b2f9b208 100644 --- a/.github/workflows/pull-request-build.yml +++ b/.github/workflows/pull-request-build.yml @@ -20,10 +20,12 @@ jobs: with: java-version: '17' distribution: 'zulu' + cache: 'gradle' - name: Setup Flutter uses: subosito/flutter-action@v2 with: channel: 'stable' + cache: true - name: Install Flutter dependencies run: flutter pub get - name: Generate files with Builder diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac11edeb..7476009a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: with: java-version: '17' distribution: 'zulu' + cache: 'gradle' - name: Setup Node.js uses: actions/setup-node@v3 with: @@ -32,6 +33,7 @@ jobs: uses: subosito/flutter-action@v2 with: channel: 'stable' + cache: true - name: Install Flutter dependencies run: flutter pub get - name: Generate files with Builder @@ -64,4 +66,4 @@ jobs: - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm exec semantic-release \ No newline at end of file + run: npm exec semantic-release