diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml index 68247fe..732fb4d 100644 --- a/.github/workflows/android-build.yml +++ b/.github/workflows/android-build.yml @@ -23,12 +23,27 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Set up Java + uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: '17' + cache: gradle + - name: Set up Flutter uses: subosito/flutter-action@v2 with: channel: stable cache: true + - name: Cache Pub packages + uses: actions/cache@v4 + with: + path: ~/.pub-cache + key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} + restore-keys: | + ${{ runner.os }}-pub- + - name: Flutter version run: flutter --version @@ -61,12 +76,27 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Set up Java + uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: '17' + cache: gradle + - name: Set up Flutter uses: subosito/flutter-action@v2 with: channel: stable cache: true + - name: Cache Pub packages + uses: actions/cache@v4 + with: + path: ~/.pub-cache + key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} + restore-keys: | + ${{ runner.os }}-pub- + - name: Get dependencies run: flutter pub get