From 4f451d3df20f2f06de6e2f61752789f1f7906b8d Mon Sep 17 00:00:00 2001 From: git-elliot Date: Thu, 11 Apr 2024 14:42:40 +0530 Subject: [PATCH] cache flutter zip --- .github/workflows/flutter_test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/flutter_test.yml b/.github/workflows/flutter_test.yml index a222e44..e437d55 100644 --- a/.github/workflows/flutter_test.yml +++ b/.github/workflows/flutter_test.yml @@ -64,6 +64,9 @@ jobs: uses: subosito/flutter-action@v2.16.0 with: channel: stable + cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" - name: Flutter version run: flutter --version - name: Cache pubspec dependencies @@ -119,6 +122,9 @@ jobs: uses: subosito/flutter-action@v2.16.0 with: channel: stable + cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" - name: Cache pubspec dependencies uses: actions/cache@v4.0.2 with: @@ -175,6 +181,9 @@ jobs: uses: subosito/flutter-action@v2.16.0 with: channel: stable + cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" - name: Cache pubspec dependencies uses: actions/cache@v4.0.2 with: @@ -221,6 +230,9 @@ jobs: uses: subosito/flutter-action@v2.16.0 with: channel: stable + cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" - name: Cache pubspec dependencies uses: actions/cache@v4.0.2 with: