diff --git a/.github/workflows/flutter_ci.yaml b/.github/workflows/flutter_ci.yaml index 5c9b76ff9e..d3ddc17be8 100644 --- a/.github/workflows/flutter_ci.yaml +++ b/.github/workflows/flutter_ci.yaml @@ -72,12 +72,20 @@ jobs: override: true profile: minimal + - name: Export pub environment variables and add to PATH + run: | + if [ "$RUNNER_OS" == "Windows" ]; then + echo "PUB_CACHE=$LOCALAPPDATA\\Pub\\Cache" >> $GITHUB_ENV + fi + shell: bash + - name: Install flutter id: flutter uses: subosito/flutter-action@v2 with: channel: "stable" flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true - uses: Swatinem/rust-cache@v2 with: @@ -159,6 +167,7 @@ jobs: with: channel: "stable" flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true - uses: Swatinem/rust-cache@v2 with: @@ -262,6 +271,7 @@ jobs: with: channel: "stable" flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true - uses: taiki-e/install-action@v2 with: @@ -336,6 +346,7 @@ jobs: with: channel: "stable" flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true - uses: taiki-e/install-action@v2 with: @@ -427,6 +438,7 @@ jobs: with: channel: "stable" flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true - uses: taiki-e/install-action@v2 with: