From ad618334499ff37be001314976188003adeb19de Mon Sep 17 00:00:00 2001 From: Matias de Andrea Date: Sun, 18 Feb 2024 14:34:07 +0100 Subject: [PATCH] ci: improve flutter cache --- .github/workflows/build.yaml | 1 + tool/setup.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5864bac3..6d8c1dff 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,6 +20,7 @@ jobs: with: flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} cache: true + cache-key: 'flutter-:os:-:version:-:arch:' - name: Show flutter info run: flutter doctor diff --git a/tool/setup.sh b/tool/setup.sh index 308651b4..196eebf1 100644 --- a/tool/setup.sh +++ b/tool/setup.sh @@ -1,3 +1,5 @@ +#!/bin/bash + clean="flutter clean" pub_get="flutter pub get" build_runner="dart run build_runner build --delete-conflicting-outputs"