diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 79714fd..3b894d3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,6 +16,7 @@ jobs: - uses: subosito/flutter-action@v2 with: channel: 'stable' + cache: true - run: flutter pub get @@ -40,6 +41,15 @@ jobs: - uses: subosito/flutter-action@v2 with: channel: 'stable' + cache: true + + - uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: gradle-${{ runner.os }}- - run: flutter pub get @@ -69,6 +79,13 @@ jobs: - uses: subosito/flutter-action@v2 with: channel: 'stable' + cache: true + + - uses: actions/cache@v4 + with: + path: ios/Pods + key: pods-${{ runner.os }}-${{ hashFiles('ios/Podfile.lock') }} + restore-keys: pods-${{ runner.os }}- - run: flutter pub get